Aa 0.14.1

Equations

An equation is TeX written between dollar signs. Aa keeps the TeX in the Markdown and asks your app to draw it.

Equations in a line

Put the caret in an equation to edit its TeX. Select words and press Equation on the toolbar to make one.

What it stores

What you seeHow you write it
An equation in a line$\pi r^2$
An equation of its own$$ on a line, the TeX, then $$ on a line

A $ with another $ straight after it does not start an equation in a line, so $$ stays a block.

An equation of its own

Put the caret in it to edit the TeX between the two lines of $$.

What it stores

Equation on the toolbar turns the selected words into an equation, and the slash menu has Equation among its kinds.

Aa does not carry a TeX renderer. Give it drawEquation, and it calls it for each equation with the element to draw into, the TeX, and whether it is a block. Return a function to stop, for a renderer that loads late:

import katex from 'katex'createEditor(host, {  drawEquation: (element, tex, displayMode) => {    katex.render(tex, element, { displayMode, throwOnError: false })  },})

Without drawEquation, an equation is shown as its TeX. These pages draw them with KaTeX, loaded only when a page has one.