Typlet

What falls back, and why

Of the 1,672 formulas of the test corpus that Typst 0.15.1 renders, Typlet lays out 1,506 as HTML, draws 158 as MathML with a warning, and refuses 8. The corpus (test/corpus/README.md) holds the examples of Typst's documentation, the formulas of TypstPad's symbol picker, a formula for each symbol of the sym module, and the test cases of Typlet's features and embedded code, so symbols weigh heavily in it. This page is generated from it by tools/site/fallbacks.mjs.

Drawn as MathML

The htmlAndMathml and html outputs draw a formula as MathML, which the browser lays out, when Typlet's layout can't draw something in it. The warning, of kind fallback, says what, and renderToResult returns it with drawnAs: 'mathml'.

Reason Formulas Examples
Typlet does not support "…" in HTML output, as New Computer Modern Math has no glyph for it 136 afghani, baht, ballot
Typlet does not support raw in HTML output yet 10 #auto, #true, #1em
Typlet does not support bold "…" in HTML output yet 2 #strong[$x + 1$], 1#strong["a"]
Typlet does not support display equations in boxes yet 2 #box[$ x $], #box[a $ x $ b]
Typlet does not support the font "…" in HTML output 2 #show math.equation: set text(font: "Cambria Ma…, #text(font: "Arial")[text]
Typlet does not support linebreak in boxes in HTML output yet 1 #box[#hide[a] \ b]
Typlet does not support OpenType features in HTML output yet 1 #text(features: ("ss01",))[ag0]
Typlet does not support parbreak in boxes in HTML output yet 1 #box[a ⏎ ⏎ b]
Typlet does not support right-to-left text in HTML output yet 1 #text(lang: "ar")[(a)]
Typlet does not support text strokes in HTML output yet 1 #text(stroke: 0.5pt + red, $x$)
Typlet does not support the font weight 400 in HTML output yet 1 #text(weight: "regular")[ab]

The characters New Computer Modern Math has no glyph for, in the corpus: U+0009 ֏ ؋ ߾ ߿ ৳ ௹ ฿ ៛ ₦ ₨ ₩ ₪ ₫ ₭ ₮ ₱ ₲ ₴ ₵ ₸ ₹ ₺ ₼ ₽ ₾ ₿ ⃀ ⃁ ␀ ␁ ␂ ␃ ␄ ␅ ␆ ␇ ␈ ␉ ␊ ␋ ␌ ␍ ␎ ␏ ␐ ␑ ␒ ␓ ␔ ␕ ␖ ␗ ␘ ␙ ␚ ␛ ␜ ␝ ␞ ␟ ␠ ␡ ␤ ☐ ☑︎ ☒ ☙ ☿ ♁ ♃ ♄ ♅ ♆ ♬ ⚢ ⚣ ⚤ ⚦ ⚧︎ ⚨ ⚩ ⛢ ✔︎ ✘ ❦ ❧ ⸲ ⸵ ⸶ ⸷ ⸸ ⸺ ⸻ ⹁ ⹋ 𝄩 𝄪 𝄫 𝄬 𝄭 𝄮 𝄯 𝄰 𝄱 𝄲 𝄳 𝄺 𝄻 𝄼 𝄽 𝄾 𝄿 𝅝 𝅗𝅥 𝅘𝅥 𝅘𝅥𝅮 𝅘𝅥𝅯 𝆔 𝆕 𞋿 🄍 🄎 🄏 🄯 🅭 🅮 🅯 🎜 🎝 🗸 🗹 🛆 🜨.

Refused

A formula with code Typlet doesn't evaluate throws a TypletError of kind unsupported, which the fallback option can render another way, for example with Typst compiled to WebAssembly.

Reason Formulas Examples
Typlet does not support show rules for text 2 #show math.equation: set text(fill: blue) ⏎ #sh…, #[#show "x": "y" ⏎ x]
Typlet does not support show rules for strong 1 #show strong: set text(fill: red) #strong[x]
Typlet does not support show rules with a function 1 #show math.equation: it => it x
Typlet does not support where() with the field numbering 1 #show math.equation.where(numbering: none): set…
Typlet does not support headings 1 #[= Heading]
Typlet does not support loops 1 #for i in (1, 2) [#i]
Typlet does not support the range function 1 #let m = range(1, 5).map(i => range(1, 5).map(j…