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 2 years 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

or is it possible to ignore everything between an on/off block?

<!-- prettier-ignore on -->

what ever ...

<!-- prettier-ignore off -->

Thanks.

seven1240 avatar Apr 04 '24 09:04 seven1240

@seven1240 https://prettier.io/docs/en/ignore.html#range-ignore

tv42 avatar May 20 '24 18:05 tv42

nice. it works, thanks.

seven1240 avatar Jun 10 '24 08:06 seven1240

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 10 '24 00:09 github-actions[bot]