From 6f53159d7bd5c0ca26b076b5ba25432f3b44acdb Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 6 Mar 2026 14:26:21 -0500 Subject: [PATCH] docs(presets): rewrite math rendering section for `--katex` default --- doc/preview.txt | 52 +++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/doc/preview.txt b/doc/preview.txt index fb133d8..f16b1ae 100644 --- a/doc/preview.txt +++ b/doc/preview.txt @@ -183,8 +183,8 @@ override individual fields by passing a table instead: >lua `latex` latexmk -pdf → PDF (with clean support) `pdflatex` pdflatex → PDF (single pass, no latexmk) `tectonic` tectonic → PDF (Rust-based LaTeX engine) - `markdown` pandoc → HTML (standalone, embedded) - `github` pandoc → HTML (GitHub-styled, `-f gfm` input) + `markdown` pandoc → HTML (standalone, KaTeX math) + `github` pandoc → HTML (GitHub-styled, `-f gfm`, KaTeX math) `asciidoctor` asciidoctor → HTML (AsciiDoc with SSE reload) `plantuml` plantuml → SVG (UML diagrams, `.puml`) `mermaid` mmdc → SVG (Mermaid diagrams, `.mmd`) @@ -193,40 +193,36 @@ override individual fields by passing a table instead: >lua Math rendering (pandoc presets): ~ *preview-math* -The `markdown` and `github` presets use `--mathml` by default, which converts -TeX math to native MathML markup rendered by the browser. This is the only -math option compatible with `--embed-resources` (self-contained HTML). +The `markdown` and `github` presets use `--katex` by default, which inserts a +`