Plugin icon

Enhanced Rendering

Mermaid rendering Mermaid editing with preview Mermaid fullscreen dialog Math rendering

Description

Render Mermaid diagrams and KaTeX math directly in Joplin's Markdown editor

Additional Information

Links:
Maintainers: bwat47
Version:0.6.0
Minimum app version:3.7
Downloads: This version:2
Last updated:2026-12-05T18:47:48Z

[!note] This plugin is developed with AI assistance

Enhanced Rendering

Render Mermaid diagrams (via Pele) and inline/block math (via KaTeX) directly in Joplin's CodeMirror 6 Markdown editor.

example screenshot

Usage

When the plugin is enabled, mermaid and math syntax are automatically rendered in the markdown editor (visually replacing the syntax).

Left clicking on rendered content will reveal the markdown syntax. For math blocks and mermaid diagrams, the rendered preview will continue to show below the markdown syntax, so you can see changes as you edit.

Clicking the full screen button on the top-right of a Mermaid diagram will open a fullscreen dialog where you can pan/zoom the diagram.

On desktop, the fullscreen dialog's Export menu can save the diagram as an SVG or PNG file, or copy it to the clipboard as HTML (an image with an embedded SVG or PNG). Under Tools > Options > Enhanced Rendering you can choose the export appearance (Light, Dark, or As shown in Joplin; Light by default) and the PNG scale (1× to 4×; 2× by default).

Requirements

  • Joplin 3.7 or newer
  • Markdown editor using CodeMirror 6

Installation

Install from Joplin's plugin manager, or install the .jpl file manually:

  1. Download com.bwat47.joplin-enhanced-rendering.jpl from the latest release.
  2. In Joplin, open Tools > Options > Plugins.
  3. Select Install from file.
  4. Restart Joplin if prompted.

Notes

  • This plugin changes editor display only. It does not modify note content.

  • Math rendering requires "Enable math expressions (wysiwyg: yes)" to be enabled under Tools | Options | Markdown (otherwise the syntax tree nodes for math aren't available in the editor).

  • As in Joplin's Markdown viewer, macros defined with \gdef (or \global\def, \xdef) are available to all math after the definition in the same note. Math that only defines macros is shown as muted source text so it stays visible and clickable. \def and \newcommand only apply within their own expression.

  • KaTeX \htmlId, \href, and \url are supported. Links accept the same URLs as Joplin's Markdown viewer (http(s), mailto:, joplin://, and #fragment); Ctrl+click (Cmd+click on macOS) opens external links or scrolls to a #fragment link's target (a heading or an \htmlId), and a plain click edits the math as usual. Other commands that require trust, such as \htmlClass, \htmlStyle, \htmlData, and \includegraphics, are not rendered.

  • Mermaid diagrams can appear differently than in the Markdown viewer due to the different library being used to render them.

Development

Requires Node 22 or later.

npm ci
npm test
npm run lint
npm run dist

Browser tests run the extension in a real CodeMirror editor using headless Chromium:

npx playwright install chromium
npm run test:browser

npm run dist creates the installable plugin at publish/com.bwat47.joplin-enhanced-rendering.jpl.