Brett on 30 Oct, 2014 12:57 PM
It's possible by including flowchart.js. You could have a custom
preprocessor that inserted this automatically when certain markup was
detected. When I get time, I'll write up how to do it as a knowledgebase
You don't necessarily need a custom processor, you can just include
markup in the document to link a script, etc. A pre-processor could
insert the script tag into every document automatically, but let me know
if that's a necessity for you.
Brett on 22 Jul, 2017 05:36 PM
Sorry for the delayed response to this one,
Essentially you could create a simple preprocessor script that just inserted a script tag for mermaid.js before the rest of the document. Here's an example you can save somewhere like ~/Library/Scripts/mermaid.sh and set up as a Preprocessor.
I am "digging out" that topic after a long time again, but I tried to follow the steps you mentioned two posts above.
I created the "mermaid.sh" script and added it as "Preporcessor" in the settings.
Then I added the following lines to my text file.
John->Bob: How about you?
Bob-->John: Jolly good!
Unfortunately I did not get any diagram displayed on Marked 2.
I am relatively new to markdown and Marked 2, but I would need to get the diagrams working in Marked 2 and have no glue where to start troubleshooting.
Are there special settings to be set in the preferences (other than the preprocessing script)? Do I need to install something local to my machine?