- 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
14 lines
457 B
Python
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
|