-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support for ELK flowchart renderer #114
Comments
Thank you for your contribution! This is very appreciated. |
I am not famiiar with elk, but the most plausible explanation is contained in the website's warning:
The way you do "install", I guess, would be to make this javascript package available to the web page (conside MkDocs with Mermaid2 as a canvas with a few things already drawn on it; you must add what is missing). Adding javascript libraries is done in MkDocs through the The official documentation is pretty good. It does't say, however that refering to a URL is permissible. (@waylan : Should I open an issue for the doc of MkDocs, or submit a PR?) Something like this should work: extra_javascript:
- https://cdn.jsdelivr.net/npm/@mermaid-js/layout-elk@11/dist/mermaid-layout-elk.esm.min.mjs By experience, you will probably have to play around until you get it right. |
@fralau Thanks for the help - started tinkering but no luck so far. What I've tried:
With
I've also tried: |
Unable to select elk renderer for flowcharts.
The following plugin configuration results in the diagram rendering with the default (i.e., non-elk) renderer:
Inserting the following directly into the diagram is also ignored (see mermaid docs):
I am using MkDocs with Material theme.
The text was updated successfully, but these errors were encountered: