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

Mermaid seems to be incompatible with mkdocs-macros #225

Closed
SPyofgame opened this issue Apr 9, 2024 · 6 comments
Closed

Mermaid seems to be incompatible with mkdocs-macros #225

SPyofgame opened this issue Apr 9, 2024 · 6 comments
Labels
info required Further information is requested stale No news, closing useful tip A how-to, good to know

Comments

@SPyofgame
Copy link

With mermaid.js and html, css inside the table, I can make some visualization like this

image

But after using mkdocs-macros, I can still you mermaid.js but I can not name any nodes nor using CSS

image

Copy link

github-actions bot commented Apr 9, 2024

Welcome to this project and thank you!' first issue

@SPyofgame
Copy link
Author

Fixed, by doing something like

      j2_block_start_string: '{{{%'
      j2_block_end_string: '%}}}'
      j2_variable_start_string: '{{{@'
      j2_variable_end_string: '}}}@'
      j2_comment_start_string: '{{{#'
      j2_comment_end_string: '#}}}'

@fralau fralau added the useful tip A how-to, good to know label Apr 9, 2024
@fralau
Copy link
Owner

fralau commented Apr 9, 2024

Wow, what a pretty diagram!

For our information did you identify the piece of code in Mermaid that was tripping MkDocs-Macros?

@SPyofgame200
Copy link

I don't know for sure, but I think some kind of start_string and end_string of mermaid and macros was incompatible so we must use them differently. I tried to change a few permutations of order of the plugins but it seems... ehmmmm not working I guess ?

@SPyofgame200
Copy link

Wow, what a pretty diagram!

For our information did you identify the piece of code in Mermaid that was tripping MkDocs-Macros?

I was dedicated with my own project, in order to teach my students better, so I tried to make my site with many interactive features

@fralau
Copy link
Owner

fralau commented Apr 27, 2024

Perhaps searching with your editor for offending strings might help?

I am just curious about it: the question of how to ensure compatibility of Mkdocs-Macros' syntax with other plugins has been a topic of extensive research.

And considering that I am the author of both plugins 🙂 ...

@fralau fralau added the info required Further information is requested label Apr 27, 2024
@fralau fralau added the stale No news, closing label Jun 2, 2024
@fralau fralau closed this as completed Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info required Further information is requested stale No news, closing useful tip A how-to, good to know
Projects
None yet
Development

No branches or pull requests

3 participants