-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle empty newlines before diagrams in md
Handles empty newlines before and after diagrams in Markdown. For example, the following Markdown: ````markdown My text. ```mermaid my diagram ``` ```` Should get converted to: ```markdown My text. ![diagram](./my-diagram) ``` However, currently, the empty newline is removed. We can fix this by making sure that our Regex ignores newlines outside of the Mermaid diagram code. Fixes: 9d7b4b2 Fixes: #413
- Loading branch information
1 parent
3a5c983
commit a0888a4
Showing
3 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters