prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

prettier-ignore doesn't work with table title

Open seven1240 opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe.

<!-- prettier-ignore --> works in #762 but when a table has a title, the inserted <!-- prettier-ignore --> might cause trouble on some markdown parser, e.g. Pandoc would ignore the title when rendering the following table.

: table title
<!-- prettier-ignore -->

| a | b|
|--| ---|
| aaa | bbb|

As it's not possible to let all markdown parser to ignore the comment, Is it possible to put the prettier-ignore before the title and still ignores the following table?

e.g.

<!-- prettier-ignore -->
: table title

Describe the solution you'd like

<!-- prettier-ignore -->
: table title

| a | b|
|--| ---|
| aaa | bbb|

Describe alternatives you've considered

Additional context

Thanks.

seven1240 avatar Mar 06 '24 01:03 seven1240