Replies: 2 comments 2 replies
-
Personally, I prefer to disable As an example, I have a fairly large Mermaid rendering here that just overflows: https://facelessuser.github.io/coloraide/colors/#color-space-map. I'm not sure what Material does out of the box, but I'm currently still using a custom solution for my diagrams. IIRC, you can adjust the config in Mermaid using a special header at the beginning of your diagram, so you could adjust This, of course, assumes that the overflow approach is preferable to the scaled approach with a zoomed option. |
Beta Was this translation helpful? Give feedback.
-
Hi @squidfunk. I am finally able to implement this using mkdocs-mermaid2-plugin by using the callback argument like below. I figured out, in mkdocs-material, we are doing
How do you see the same support in your repo? Maybe we can hardcode this (at least for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am a newbie to mkdocs and mkdocs-material. When I have a big mermaid chart, it is too tiny to see. So, I made a hack javascript code which adds a click event to the SVG and when clicked, opens a new tab only with the SVG (a full-screen experience). The script is working in a dummy HTML but not in mkdocs-materials. The click event is not registered and thus, the function is not executed. Do you how I can add this event after svg elements are created?
content of extra.js:
Beta Was this translation helpful? Give feedback.
All reactions