-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
- changing mermaid suport #2120
Conversation
for more information, see https://pre-commit.ci
share/templates/reveal/index.html.j2
Outdated
], | ||
|
||
function(Reveal, RevealNotes){ | ||
function(Reveal, RevealNotes, RevealMermaid){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, missed this: the positional argument would need to be conditional as well:
function(
Reveal,
RevealNotes,
{% if reveal_mermaid_js_url %}RevealMermaid,{% endif %}
){
Also feel free to normalize the whitespace: the "floating indent" style isn't necessary, just consistency with what's around (in this case four spaces).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, i also did that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can someone please assign the improvement label? I am sorry, i either don't have the right to set it, or i just don't find the feature...
share/templates/reveal/index.html.j2
Outdated
@@ -145,21 +143,26 @@ require( | |||
}, | |||
[ | |||
"{{ reveal_url_prefix }}/dist/reveal.js", | |||
"{{ reveal_url_prefix }}/plugin/notes/notes.js" | |||
"{{ reveal_url_prefix }}/plugin/notes/notes.js", | |||
{% if reveal_mermaid_js_url %}"{{ reveal_mermaid_js_url }}",{% endif %}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's an extra comma after the endif
@bollwyvl .: Is there still something I need to do? Something i overlooked? Thanks, |
|
the already existing mermaid support, did not work for me.
It showed me "syntax error bomb displays", which where displayed just milliseconds after the correctly rendered graph was shown.
I added the reveal mermaid plugin, and removed the already existing mermaid initialisation.
While this does work for me, it is probably quite a change and i really would like to get some input on how to continue, or change my environment to fit the preexisting solution (which is still used for the hard parts, i basically swap pure mermaid for the plugin, as a result of trial and error)