Files
mytoolkit/templates/md-to-docx/review/postprocess.py
T
Zhengshou Lai 75bb7dec32 feat(convert): template-driven docx postprocess + pdf table left align
- Move docx post-processing from convert.py to template-specific postprocess.py hooks
- Resolve relative markdown image paths before pandoc for docx and pdf
- Auto-generate centered figure captions (图 1, 图 2...) in docx
- Center tables and apply three-line table borders in docx
- Left-align tables in PDF via template.typ show rule
2026-06-28 11:27:14 +08:00

14 lines
457 B
Python

"""Review post-processing for md→docx conversion.
Currently reuses the default docx post-processor. Override this file when the
review template needs custom behavior.
"""
from importlib.machinery import SourceFileLoader
from pathlib import Path
_default_pp = Path(__file__).parent.parent / "default" / "postprocess.py"
_default_module = SourceFileLoader("default_postprocess", str(_default_pp)).load_module()
postprocess = _default_module.postprocess