diff --git a/doc/preview.txt b/doc/preview.txt index 6bf5171..3912a41 100644 --- a/doc/preview.txt +++ b/doc/preview.txt @@ -22,6 +22,7 @@ CONTENTS *preview-contents* 3. Install ............................................... |preview-install| 4. Configuration ........................................... |preview-config| 5. Presets ............................................... |preview-presets| + - Math rendering ....................................... |preview-math| 6. Commands ............................................. |preview-commands| 7. Lua API ................................................... |preview-api| 8. Events ............................................... |preview-events| @@ -189,6 +190,33 @@ override individual fields by passing a table instead: >lua `mermaid` mmdc → SVG (Mermaid diagrams, `.mmd`) `quarto` quarto render → HTML (scientific publishing) +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). + +`--mathjax` and `--katex` insert `