Skip to content

Conversation

@chrisirhc
Copy link
Contributor

@chrisirhc chrisirhc commented Mar 7, 2025

Previously, a code block was required to treat the code as mermaid. This does away with that requirement.

Before:
image

After:
image

I also did some adhoc testing that this doesn't break/change rendering between markdown code blocks.

Previously, a code block was required to treat the code as mermaid.
This does away with that requirement.
@netlify
Copy link

netlify bot commented Mar 7, 2025

Deploy Preview for textmate-grammars-themes failed.

Name Link
🔨 Latest commit 6dc5599
🔍 Latest deploy log https://app.netlify.com/sites/textmate-grammars-themes/deploys/67cafa225e698c0008196c23

@slevithan
Copy link
Contributor

Does this need to be patched here? Wouldn't this be better changed in the upstream grammar?

@chrisirhc
Copy link
Contributor Author

chrisirhc commented May 8, 2025

Does this need to be patched here? Wouldn't this be better changed in the upstream grammar?

My bad, I didn't realize there's an upstream. Will propose a fix there. Thank you for pointing that out!

Update: looks like the upstream is https://github.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/blob/master/syntaxes/mermaid.tmLanguage-mdx.yaml , which is a mermaid code block.

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

Successfully merging this pull request may close these issues.

2 participants