-
Notifications
You must be signed in to change notification settings - Fork 7
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
Play nice with <!-- prettier-ignore -->
switching between prettier<>dprint
#83
Comments
https://dprint.dev/plugins/markdown/config/#ignoreDirective Actually if I can get this to work, that is all I need. The playground is working for this: ## Something
Working format
<!-- prettier-ignore -->
Ignore format With config snippet:
|
So in collaborating with others that use prettier instead of dprint (for example via prettier setup to automatically run on an IDE), here is an example of problem: <diagram class="mermaid limit size-40">
<!-- prettier-ignore-start -->
flowchart TD
subgraph paraA[Parachain A .]
executor --"success?"--> palletxcm
palletxcm("pallet-xcm") --"execute"--> executor("xcm-executor")
end
execute("execute(xcm)") --> palletxcm
<!-- prettier-ignore-end -->
</diagram> Prettier needs there to be no new lines to respect the inner block. <diagram class="mermaid limit size-40">
<!-- prettier-ignore-start -->
flowchart TD
subgraph paraA[Parachain A .]
executor --"success?"--> palletxcm
palletxcm("pallet-xcm") --"execute"--> executor("xcm-executor")
end
execute("execute(xcm)") --> palletxcm
<!-- prettier-ignore-end -->
</diagram> And a run of prettier after this formats the block in an untended way. |
<!-- prettier-ignore -->
<!-- prettier-ignore -->
switching between prettier<>dprint
To make use of this tool easy to transition or be directly compatible with Prettier users, I would love to have https://dprint.dev/plugins/markdown/#ignore-comments be expanded to also ignore using:
<!-- prettier-ignore -->
<!-- prettier-ignore-start --> ... <!-- prettier-ignore-end -->
The text was updated successfully, but these errors were encountered: