Closed MarkoMin closed 7 months ago
This was fixed up in #59 if I understand your problem correctly. Are you using the latest version of rebar3_ex_doc (v0.2.20)?
No, that issue just made the solution complete. However, imagine if you want to set all diagrams to be full-screen on click. Then, you firstly need to render them (embedded script via with_mermaid
) and than you execute for
loop over <svg>
elements in before_closing_body_tag
. However, ATM before_closing_body_tag
gets executed b4 mermaid scripts so it has no effect because diagrams are not rendered yet.
@MarkoMin I see. A PR is quite welcome.
I have I use case where I want to use mermaid to render diagrams in docs, but I want to manipulate
<svg>
elements afterwards with custom javascript. When I embed mermaid script manually inbefore_closing_body_tag
it works, but when I usewith_mermaid
option, graphs are renedered, but not customized via JS. Can mermaid script be executed b4before_closing_body_tag
?I didn't dig into source, but I could come with PR if the solution is wanted.