QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

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

Open Beurt opened this issue 7 years ago • 6 comments

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).

Beurt avatar Nov 04 '18 12:11 Beurt

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 avatar Nov 04 '18 20:11 pbek

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 avatar Nov 04 '18 20:11 pbek

...like graphviz ;)

pbek avatar Nov 04 '18 20:11 pbek

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

Beurt avatar Nov 04 '18 20:11 Beurt

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 avatar Nov 04 '18 20:11 pbek

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

pbek avatar Nov 04 '18 20:11 pbek