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

Add support for mermaid.js diagrams #135

Merged
merged 1 commit into from Oct 17, 2021
Merged

Add support for mermaid.js diagrams #135

merged 1 commit into from Oct 17, 2021

Conversation

dohliam
Copy link
Contributor

@dohliam dohliam commented Oct 17, 2021

This script adds support for rendering mermaid.js diagrams using the mermaid.ink API. Details can be found on the wiki page for the script, and there are a number of example diagrams here to show the results.

As noted on the wiki page, this should be considered a temporary workaround until full mermaid support becomes available, but it works reasonably well in the meantime.

@pbek
Copy link
Member

pbek commented Oct 17, 2021

Ah, nice. Thank you. Something like that was on my todo list, but I wanted to attempt to add the mermaid library directly as javascript (like it was done with https://github.com/qownnotes/scripts/tree/master/markdown-it) and try to generate an SVG locally and render that.

Maybe you want to add your integration for QOwnNotes at https://mermaid-js.github.io/mermaid/#/./integrations? 😉

@pbek pbek merged commit 7b208ca into qownnotes:master Oct 17, 2021
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