You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It changes position of closing tag </linearGradient>. And the second option is wrong.
About strategies
Which makes rehypePlugins: [[rehypeMermaid, { strategy: "img-svg" }]], a bit more reliable choice. But on the other hand it doesn't support css (correct?).
inline-svg
cons: other CSS from HTML page may conflict (like globally set line-height)
cons: may not work with rehype-raw
pros : supports css option
pros : text is searchable
img-svg
cons: doesn't support css option
pros: supports dark mode
pros: no issues with rehype-raw
pros: no conflicts with other styles on the page
The text was updated successfully, but these errors were encountered:
stereobooster
changed the title
Some diagrams doesn't work with raw-rehype plugin
Some diagrams doesn't work with rehype-raw plugin
May 5, 2024
Good catch. This is definitely a bug. I reported it upstream, but let’s keep this issue open until this is fixed. In the meantime, you could move rehypeRaw before rehypeMermaid.
About issue
This is not a bug in your code. Just want to let you know about it:
Without rehype-raw it would generate:
With rehype-raw it would generate:
It changes position of closing tag
</linearGradient>
. And the second option is wrong.About strategies
Which makes
rehypePlugins: [[rehypeMermaid, { strategy: "img-svg" }]],
a bit more reliable choice. But on the other hand it doesn't supportcss
(correct?).inline-svg
line-height
)rehype-raw
css
optionimg-svg
css
optionrehype-raw
The text was updated successfully, but these errors were encountered: