pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.67k stars 413 forks source link

Translate dot in the Markdown into image (or SVG) with Graphviz #1058

Open Beurt opened 5 years ago

Beurt commented 5 years ago

Hi, I just discovered that several note taking apps based on Markdown are able to translate dot language into images (cf.: https://fr.wikipedia.org/wiki/DOT_(langage)). It is an awesome feature that would be great in QOwnNotes (using Graphviz).

pbek commented 5 years ago

I'm sorry, since QOwnNotes isn't a web-application and also doesn't use a fully fledged web-browser this currently will not possible.

pbek commented 5 years ago

But of course you would be able to write a script that converts the syntax into an image if there is an external too that is able to generate an image.

pbek commented 5 years ago

...like graphviz ;)

Beurt commented 5 years ago

That was the idea... (but, unfortunately, I'm not able to do the script myself)

pbek commented 5 years ago

You could do it like in https://github.com/qownnotes/scripts/blob/master/paste-latex-image/paste-latex-image.qml if you are using a web service...

If you need to run graphviz locally you could do that like in https://github.com/qownnotes/scripts/blob/master/paste-html-as-github-markdown/paste-html-as-github-markdown.qml

pbek commented 5 years ago

Generally http://docs.qownnotes.org/en/develop/scripting/README.html is your friend. And you can always ask if you need some help.