Markdown files with CR LF line endings instead of LF do not create mermaid output #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Markdown files with CR-LF line endings will only create an empty
instead of the code block.
It should be possible to verify it with the following files:
test_cr_lf.md
test_lf.md
The cause of this may be that events.into_offset_iter() in https://github.com/badboy/mdbook-mermaid/blob/main/src/lib.rs#L64
returns the mermaid content line by line instead of in one big chunk.
PRs welcome. I don't have CRLF line endings, so I'm not too eager to investigate this right now.