From 5710e3c5b556aefe12433f9f7e725191a0783d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dieter=20Schl=C3=BCter?= Date: Fri, 9 Oct 2026 22:32:20 +0200 Subject: [PATCH] EPUB: Formeln als MathML (pandoc --mathml) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pdf2md.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pdf2md.py b/pdf2md.py index 0ac317c..cc7cdc1 100644 --- a/pdf2md.py +++ b/pdf2md.py @@ -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}",