yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.91k stars 323 forks source link

Feature Request: Add <!--markdown-extension-ignore-XXXXX--> option #1345

Open dacodekid opened 11 months ago

dacodekid commented 11 months ago

Proposal

Requesting to add some prettier-like code ignore options, like below

<!--markdown-extension-ignore-start-->
|   Markdown   | Rendered HTML |
|--------------|---------------|
|     *Italic*  | *Italic*     \
|              |               |
|    - Item 1  | - Item 1      \
|    - Item 2  | - Item 2      |
|    ```python | ```python     \
|    .1 + .2   | .1 + .2       \
|    ```       | ```           |
<!--markdown-extension-ignore-end-->

Other information

Before Disabling the "Table Formatter" option.

image

Formatter option disabled

image

After Disabling the option

image

Hopefully something like this gets added.

yzhang-gh commented 11 months ago

In fact the formatter of this extension only formats GFM tables. So it seems okay to disable it if it is not needed.