Digital Sovereignty for everyone

Diagrams written in Markdown or HTML

Content converted to blocks by LH Content Converter (2.6.0 or later) gets this block for its diagrams, whoever does the converting: the post abilities with Markdown or HTML, the knowledge base, LH Email drafts and LH Presentations slides. Either form becomes a Mermaid Diagram block:

  • In Markdown, a code fence with the language mermaid.
  • In HTML, a pre element with the mermaid class holding only the diagram text.

The block is saved in the same markup the editor saves, so it opens with Source and Preview and draws on the page. Empty diagrams and other code blocks are left alone. This works through the converter’s block handlers (see LH Content Converter’s Block handlers section). Lh_Mermaid_Block::block_markup( $source ) returns the block’s saved markup for a diagram, for plugins that build content themselves.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.