AVATEAM-IT-SYSTEMHAUS / mkdocs-kroki-plugin

MkDocs plugin for Kroki-Diagrams
MIT License
46 stars 28 forks source link

Improve handling of the fenced code blocks #58

Closed oniboni closed 4 months ago

oniboni commented 4 months ago

Description

The plugin does not cover the current spec of Fenced code blocks^1

Background

This issue was initially raised and solved by @nolange ^2

Supports whitespace after the fence. ex:

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

[..]

Definition of Done