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

Preserve formatting over range (mermaid diagrams) #861

Open
nuke-web3 opened this issue Aug 18, 2023 · 1 comment
Open

Preserve formatting over range (mermaid diagrams) #861

nuke-web3 opened this issue Aug 18, 2023 · 1 comment
Labels
content-refactor Based on feedback and experience, suggestions for updates content-tips Ideas for crafting great content.

Comments

@nuke-web3
Copy link

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

Example:

<!-- prettier-ignore-start -->
<diagram class="mermaid">
  flowchart LR
  subgraph paraA[Parachain A]
    palletxcma("pallet-xcm") --"1. execute"--> executora("xcm-executor")
    executora --"send"--> sendera("xcm-sender")
  end

  subgraph tdestination[Trusted Destination]
  end
  lteleport("limited_teleport_assets(\n  dest,\n  beneficiary,\n  assets,\n  fee_asset_item,\n  weight_limit\n)"):::left --> palletxcma

  sendera --"2."--> tdestination

  classDef left text-align:left
</diagram>
<!-- prettier-ignore-end -->

Want to do this throughout, as prettier now clobbers the indents when there is a \n\n encountered 🙃

@nuke-web3 nuke-web3 added the content-refactor Based on feedback and experience, suggestions for updates label Aug 18, 2023
@nuke-web3 nuke-web3 self-assigned this Aug 18, 2023
@nuke-web3 nuke-web3 added the content-tips Ideas for crafting great content. label Aug 18, 2023
@nuke-web3
Copy link
Author

need to update the contributor guide for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content-refactor Based on feedback and experience, suggestions for updates content-tips Ideas for crafting great content.
Projects
None yet
Development

No branches or pull requests

1 participant