Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettier-ignore doesn't work with table title #3332

Open
seven1240 opened this issue Mar 6, 2024 · 2 comments
Open

prettier-ignore doesn't work with table title #3332

seven1240 opened this issue Mar 6, 2024 · 2 comments

Comments

@seven1240
Copy link

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
Copy link
Author

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

<!-- prettier-ignore on -->

what ever ...

<!-- prettier-ignore off -->

Thanks.

@tv42
Copy link

tv42 commented May 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants