badboy / mdbook-mermaid

A preprocessor for mdbook to add mermaid support
Mozilla Public License 2.0
306 stars 32 forks source link

How to jump line in timeline diagram ? #45

Closed pinage404 closed 4 months ago

pinage404 commented 4 months ago

How to jump line in timeline diagram ?

Mermaid version used : 10.9.0

timeline
    2014 : first line<br>second line

Expected

image

Actual

image

Maybe related https://github.com/mermaid-js/mermaid/issues/4743

badboy commented 4 months ago

Not sure. mdbook-mermaid passes through the content unchanged, mdbook html-escapes it then it seems. By default mermaid.js also seems to disallow HTML tags by default. I tried it with just HTML and mermaid.js and couldn't get an example to work.

If you do find out I recommend writing that HTML directly instead of using the markdown codeblock. For now I do not plan to change how this plugin behaves.