feat: add xhtmlmp renderer

This commit is contained in:
randogoth 2026-09-26 12:41:09 +03:00
parent 3ed0b5807c
commit 3af44fb0ac
14 changed files with 524 additions and 7 deletions

View file

@ -30,3 +30,14 @@ CASES: Dict[str, Tuple[str, Dict[str, Any]]] = {
MULTI_CASES: Dict[str, Tuple[str, Dict[str, Any]]] = {
"trail-decks": ("trail-manual.md", {"deck_per_card": True, "home_label": "Home"}),
}
# name -> (example filename, renderer options), rendered through the
# XHTML-MP renderer. A separate table from CASES because XHTML-MP output is
# a plain string, not a DeckOutput -- there is no deck/card topology to
# vary, so only options that affect ordinary block/inline rendering apply.
XHTMLMP_CASES: Dict[str, Tuple[str, Dict[str, Any]]] = {
"trail-xhtmlmp": ("trail.md", {}),
"trail-manual-xhtmlmp": ("trail-manual.md", {}),
"trail-rules-xhtmlmp": ("trail-rules.md", {}),
"kitchen-sink-xhtmlmp": ("kitchen-sink.md", {}),
}