Handle CR-LF in mermaid #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mermaid blocks containing CR LF are returned line by line from the parser instead
of as a complete code chunk for LF only.
We need to expand the span for each chunk we get.
After the closing ticks we replace the remaining \r\n with \n to have a consistent line ending
in the mermaid code at least.
fixes #26
@ -76,8 +77,15 @@ fn add_mermaid(content: &str) -> Result<String> {}Stray println.
@ -81,0 +85,4 @@} else {code_span = code_span.start..span.end;}Let's call this out in the comment, so I don't have to remember that when I read this in 3 months