EPUB: Formeln als MathML (pandoc --mathml)

Ohne --mathml schreibt pandoc $$...$$ ins EPUB als TeX-Text. Betrifft
Markdown, in dem formula_img2latex Formelbilder durch LaTeX ersetzt hat:
Corral, Elementary Calculus – 429 Formeln jetzt als MathML, kein TeX-Rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-10-09 22:32:20 +02:00
commit 5710e3c5b5

View file

@ -2120,6 +2120,7 @@ def write_epub(
str(markdown_path),
"--from", "markdown-yaml_metadata_block+autolink_bare_uris",
"--to", "epub3",
"--mathml", # $$...$$ (e.g. from formula_img2latex) as MathML, not as TeX text
"--output", str(epub_path),
"--resource-path", str(markdown_path.parent),
f"--split-level={split_level}",