Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

- changing mermaid suport #2120

wants to merge 10 commits into from

Conversation

franzhaas
Copy link
Contributor

@franzhaas franzhaas commented Mar 2, 2024

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)

@franzhaas franzhaas marked this pull request as draft March 4, 2024 12:22
],

function(Reveal, RevealNotes){
function(Reveal, RevealNotes, RevealMermaid){
Copy link
Contributor

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).

Copy link
Contributor Author

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...

Copy link
Contributor Author

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...

@franzhaas franzhaas marked this pull request as ready for review March 5, 2024 12:33
@@ -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 %},
Copy link
Contributor

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

@franzhaas franzhaas marked this pull request as draft March 5, 2024 13:47
@franzhaas franzhaas marked this pull request as ready for review March 5, 2024 14:24
@franzhaas
Copy link
Contributor Author

franzhaas commented Mar 7, 2024

@bollwyvl .:

Is there still something I need to do? Something i overlooked?

Thanks,
Franz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants