AVATEAM-IT-SYSTEMHAUS / mkdocs-kroki-plugin

MkDocs plugin for Kroki-Diagrams
MIT License
41 stars 27 forks source link

Improve handling of the fenced code blocks #36

Closed nolange closed 1 month ago

nolange commented 1 year ago

Supports whitespace after the fence. ex:

``` plantuml
stuff
```

Support more than 3 ticks or tildes for code blocks, this is still only a part of the variations in the wilds [1]

Finds the correct matching ending fence by using identation, this required adding some more groups to the regexp and the option MULTILINE. ex.

    ```` plantuml
        stuff containing ```
    ````

[1] - https://pandoc.org/MANUAL.html#fenced-code-blocks

Closes: #34

b-bittner commented 6 months ago

@nolange first of all, thanks for your effort!

Because of the big changes in PR #46, could you please update your code to the newest baseline.

nolange commented 5 months ago

@b-bittner : All done and ready from my side

nolange commented 3 months ago

Ping? Would like to get this merged, the current version doesn't work correctly with alot of valid Markdown files