fix: add post markdown

This commit is contained in:
liuyuanchuang
2026-02-04 16:04:18 +08:00
parent 720cd05add
commit 61fd5441b7
4 changed files with 601 additions and 2 deletions

View File

@@ -248,17 +248,19 @@ class Converter:
consistency across all conversion paths. This fixes common issues that
cause Pandoc conversion to fail.
Note: OCR number errors are fixed earlier in the pipeline (in ocr_service.py),
so we don't need to handle them here.
Args:
latex_formula: Pure LaTeX formula.
Returns:
Preprocessed LaTeX formula.
"""
# Use the same preprocessing methods as export
# 1. Convert matrix environments
latex_formula = self._convert_matrix_environments(latex_formula)
# 2. Fix array column specifiers (remove spaces) - THIS IS THE KEY FIX
# 2. Fix array column specifiers (remove spaces)
latex_formula = self._fix_array_column_specifiers(latex_formula)
# 3. Fix brace spacing