feat: Abschnitt Weiterverarbeitung in der Buch-README (QA R7)
Die erzeugte README.md nennt den Merge-Befehl mit dem tatsächlichen Ausgabeordner und passende Pandoc-Befehle. Bei Büchern mit Formeln enthalten sie --mathml, ergänzt um einen Hinweis zur Formeldarstellung. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5f58589c2e
commit
bdc611eefc
1 changed files with 26 additions and 2 deletions
|
|
@ -104,3 +104,13 @@ def test_svg_file_formula_is_reported_as_svg(convert):
|
|||
report = convert(math_book()).report
|
||||
origins = {f["origin"] for f in report["formulas"]["items"]}
|
||||
assert "svg" in origins
|
||||
|
||||
|
||||
def test_book_readme_suggests_mathml_for_pandoc_only_with_formulas(convert):
|
||||
run = convert(math_book())
|
||||
readme = (run.out / "README.md").read_text(encoding="utf-8")
|
||||
assert "## Weiterverarbeitung" in readme and "epub2md_merge.py" in readme
|
||||
assert "--mathml" in readme
|
||||
plain = convert(Book(docs=[Doc("a.xhtml", "<h1>A</h1><p>Text</p>")]))
|
||||
plain_readme = (plain.out / "README.md").read_text(encoding="utf-8")
|
||||
assert "## Weiterverarbeitung" in plain_readme and "--mathml" not in plain_readme
|
||||
|
|
|
|||
Loading…
Reference in a new issue