MermaidJS support

  1. Sorry for the delay.

    You can include whatever javascript you like in the file's metadata. No need to wait on me! ;)

    More information is available in the MultiMarkdown user's guide:

    https://fletcher.github.io/MultiMarkdown-6/syntax/metadata.html#htmlheader

    Fletcher

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

  2. Thanks! It does work, but only when I hit Command+R, after each edit
    preview turns into plain-text. I wonder how to make it automatic.
    Example:
    HTML footer: <script src="
    https://unpkg.com/mermaid@8.0.0/dist/mermaid.min.js
    "></script><script>mermaid.initialize();</script>
    <div class="mermaid">
    graph TD
    test
    </div>

  3. Most scripts that I have seen are only run when page first loads. Not if the page content changes.

    You could modify the script to run more often. How to do that depends on the script.

    You can set Composer’s preferences to reload the entire page every time it updates. This works but may not give the visual experience you desire.

    Or you can refresh manually when you need to see a meaningful change.

    Only you can decide which option is best for you.

    Sent from my iPhone

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions