badboy / mdbook-mermaid

A preprocessor for mdbook to add mermaid support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to jump line in timeline diagram ?

pinage404 opened this issue · comments

How to jump line in timeline diagram ?

Mermaid version used : 10.9.0

timeline
    2014 : first line<br>second line
Loading

Expected

image

Actual

image

Maybe related mermaid-js/mermaid#4743

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.