Skip to content

Supporting CJK characters in MD060 #1869

@HowieHz

Description

@HowieHz

Hello, I would like to ask how to fix the MD060 issue.

I use Prettier to format Markdown files, which produced the following table:

| 路径匹配       | 匹配区域                   |
| -------------- | -------------------------- |
| `/archives/**` | `article .content`         |
| `/moments`     | `article .content .medium` |
| `/moments/**`  | `article .content .medium` |
| `/photos`      | `article .content`         |
| `/photos/**`   | `article .content`         |

It looks most like the "aligned" style, so I set:

  // MD060/table-column-style : Table column style : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md060.md
  "MD060": {
    // Table column style
    "style": "aligned",
  },

I also used markdownlint-cli to run the lint check, but it reports the following error::

  MD060/table-column-style Table column style [Table pipe does not align with heading for style "aligned"]

This is the PR from the update; the actions in it might help analyze the issue: HowieHz/halo-theme-higan-hz#291

I created a demo to reproduce this issue. You can access it here: stackblitz

I suspect this rule has poor support for CJK characters.

Thank you for reading this far. I wish you a pleasant life.
(My English is not good, so I used a translator.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions