AVATEAM-IT-SYSTEMHAUS / mkdocs-kroki-plugin

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

Image does not render when inside HTML tags #61

Closed vaceal closed 1 month ago

vaceal commented 1 month ago

Hello,

The following markdown file does not render kroki-mermaid diagram when inside the html tag, instead it displays the markdown image tag:

<details>
    <summary><u>Show Sequence diagram...</u></summary>
``kroki-mermaid
graph TD
    a --> b
``
</details>

``kroki-mermaid
graph TD
    a --> b
``

image

Should this be supported by the plugin?

oniboni commented 1 month ago

I would love to see this working too!

Sadly the markdown inside of html gets not reevaluated by mkdocs as we were expecting. I've added a small quick and dirty fix, to prove this point.

37 should be the way to go though.