Mac Markdown editors that draw maths and Mermaid

Checked 23 November 2026 against each app's official pages and help, linked below. Prices are in the currency each maker lists, before tax, and can change. I make Coffee, so read this with that in mind. Coffee isn't affiliated with Typora, Obsidian, Bear, Zettlr, MarkText or Microsoft.

Most well-known Mac Markdown editors now draw both LaTeX maths and Mermaid diagrams. Typora goes furthest with maths, including chemistry and automatic equation numbers. Obsidian does both for free on every platform. Bear does both inside its own library. Zettlr and MarkText are free and open source. VS Code shows both in its preview. And Coffee, the Markdown editor for Mac, draws them natively in the note, on Mac, iPhone and iPad, with a shorter list of Mermaid kinds.

I make Coffee, so weigh what I say about it. Everything about the others comes from their own pages.

What to look for

Three things separate these editors more than whether they "support" maths and Mermaid:

  • Where it's drawn. In the text as you write, under the block, or only in a separate preview.
  • How much it covers. Every Mermaid kind or a list of them, and how much TeX: chemistry, numbering, matrices.
  • Where your notes live. Plain .md files in a folder, or the app's own library.

If you're new to the syntax, writing maths in Markdown and Mermaid diagrams in Markdown cover the $, $$ and mermaid blocks all of these use.

Typora

Typora shows the finished page while you type. Its page says most MathJax extensions are built in, including mhchem for chemistry and AMSmath, with equations numbered automatically if you turn it on in preferences. For diagrams it lists Mermaid (flowcharts, sequence, Gantt and more), plus flowchart.js and sequence diagrams.

  • Price: $14.99 without tax, once, with a 15-day trial, for up to 3 devices.
  • Platforms: Mac, Windows and Linux.
  • Your notes: Ordinary files you open from folders.

Pick Typora if your maths is heavy and you want equations numbered for you.

Obsidian

Obsidian's help says maths uses MathJax with LaTeX, written between $ signs inline or $$ for a block, and that a mermaid code block becomes a diagram.

  • Price: Free without limits. Sync is $4 a month billed yearly, or $5 monthly.
  • Platforms: Mac, Windows, Linux, iPhone, iPad and Android.
  • Your notes: Markdown files in a vault folder.

Pick Obsidian if you want both for free, everywhere, with plugins for the rest.

Bear

Bear lists maths formulas and Mermaid diagrams among its Markdown extras. Its maths guide says formulas are LaTeX, drawn by MathJax, with a live preview beside inline formulas and below block ones while you edit. The syntax hides when the caret leaves. Its Mermaid guide works the same way: a live preview below the code block, and only the diagram once you move away.

  • Price: A free version, and Bear Pro is $2.99 a month or $29.99 a year, with a 7-day trial, and adds sync and more export formats. The pages don't say maths or Mermaid need Pro.
  • Platforms: Mac, iPhone and iPad.
  • Your notes: In Bear's own database, which you can export as Markdown. There's more in Coffee vs Bear.

Pick Bear if you like a polished notes library and don't need plain files.

Zettlr

Zettlr is free and open source, for academic writing. Its maths page says it uses KaTeX, with $ inline and $$ for blocks. By default formulas show as highlighted source: to see them drawn, turn the maths renderer on and set it to Preview. Mermaid is drawn in place the same way, once its renderer is on.

  • Price: Free.
  • Platforms: Mac, Windows and Linux.
  • Your notes: Markdown files in your folders.

Pick Zettlr if you write papers with citations and want the maths alongside.

MarkText

MarkText is free and open source under the MIT licence. Its page lists KaTeX maths, inline and in blocks, drawn live, and diagrams from Mermaid, Vega and Vega-Lite.

  • Price: Free.
  • Platforms: Mac (Apple silicon and Intel), Windows and Linux.
  • Your notes: Markdown files.

Pick MarkText if you want a free editor in the style of Typora, with charts as well as diagrams.

VS Code

VS Code's Markdown docs say its built-in preview draws maths with KaTeX and Mermaid in mermaid code blocks, with nothing to install. You write the source in one pane and see the result in the preview.

  • Price: Free.
  • Platforms: Mac, Windows and Linux.
  • Your notes: Any files you open.

Pick VS Code if you already write code in it and don't mind a preview pane.

Coffee

This is the one I make. Coffee draws both natively, right in the note, with nothing to install or turn on.

Maths. Write TeX between $$ lines for a formula on its own, or between single $ signs inside a sentence:

The area of the garden is $\pi r^2$.

$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$

Move the caret away and a $$ block shows only its formula, until you go back into it. Coffee covers everyday TeX: Greek letters, operators, scripts, fractions, roots, sums and integrals with limits, \left and \right, accents, \text, \mathbb, matrices, cases and aligned lines, inside tables too. Chemistry is written with \ce{}, and \tag{1} numbers an equation. Formulas use STIX Two, or Latin Modern for the look of TeX, and carry into PDF, print, HTML, Word and EPUB.

Mermaid. A mermaid code block is drawn as a diagram under it, in your theme's colours or in black and white. Coffee draws flowcharts, pie charts, sequence, gantt, class, state and entity relationship diagrams, and mind maps.

Where it's smaller than the others:

  • Other Mermaid kinds stay as code, so check your diagram type is on the list above.
  • TeX it can't read stays as TeX, with a plain hint and the line number for a formula that can't be drawn.
  • Equations are only numbered by hand, with \tag{2} and so on. Typora can count them for you.

Maths and Mermaid both work on iPhone and iPad as well as the Mac. Of the others here, only Obsidian and Bear have iPhone apps.

  • Price: 14 days free with no card or account, then €3 a month, €29 a year, or €79 once with two years of updates. One purchase covers Mac, iPhone and iPad.
  • Platforms: Mac (macOS 15 or later), iPhone and iPad.
  • Your notes: Ordinary .md files in a folder you choose.

Pick Coffee if you take lecture notes with maths or write technical notes on Apple devices, and the Mermaid kinds above cover what you draw. There's more for this kind of work on the Coffee for research page.

At a glance

EditorPriceMathsMermaidPlatforms
Typora$14.99 onceMathJax, chemistry, auto numberingYes, plus flowchart.jsMac, Windows, Linux
ObsidianFreeMathJaxYesMac, Windows, Linux, iOS, Android
BearFree, Pro $2.99 a monthMathJax, live previewYes, live previewMac, iPhone, iPad
ZettlrFreeKaTeX, renderer onYes, renderer onMac, Windows, Linux
MarkTextFreeKaTeXYes, plus VegaMac, Windows, Linux
VS CodeFreeKaTeX, in the previewYes, in the previewMac, Windows, Linux
Coffee€3 a month, €29 a year or €79 onceNative, chemistry, numbering by handEight kinds, nativeMac, iPhone, iPad

Which to pick

  • Heavy maths, numbered for you: Typora.
  • Free, on every platform: Obsidian.
  • A notes library on Apple devices: Bear.
  • Papers with citations: Zettlr.
  • Free and open source, Typora-style: MarkText.
  • You live in a code editor: VS Code.
  • Plain files, formulas and diagrams drawn natively on Mac, iPhone and iPad: Coffee.

Questions

Which Mac Markdown editor shows maths as I type?

Typora, Bear, MarkText and Coffee draw formulas while you write. Zettlr does once its maths renderer is on and set to Preview. VS Code shows them in its preview pane.

Do these editors use the same maths syntax?

Mostly. All of them read TeX between $ signs inline and $$ for a block, so a note written in one usually reads in another.

Which Mermaid diagrams does Coffee draw?

Flowcharts, pie charts, sequence, gantt, class, state and entity relationship diagrams, and mind maps. Other kinds stay as code.

Can Coffee number equations?

Yes, by hand. Add \tag{1} at the end of a display equation. Coffee doesn't count equations for you.

Does Coffee draw maths and Mermaid on iPhone?

Yes. Maths and Mermaid diagrams work in Coffee for iPhone and iPad as well as on the Mac.