-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change how fence blocks are processed
Use a fixed regex to match all fence blocks, not just the ones that are modified by this plugin. de-indent the code block before processing. This will avoid having wrong matches within a fenced block. ex: ```` Hey, this is just regular text, presenting a plantuml code block. ``` plantuml @startuml ... @enduml ``` ```` De-indentind the code is necessary if the code block is in a structural element like a list. (Apart from being not correct, handling from_file_prefix did not work in that case)
- Loading branch information
1 parent
40fbdd9
commit f1e8fdc
Showing
2 changed files
with
24 additions
and
16 deletions.
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