SIGN IN SIGN UP

fix: parse LaTeX macros in multicolumn/multirow table cells (#3204)

* fix: parse LaTeX macros in multicolumn/multirow table cells

Table cells in multicolumn and multirow used raw LaTeX content
(e.g. \textbf{Header}) wrapped in LatexCharsNode, which passed
through _nodes_to_text() verbatim. Parse the content string with
LatexWalker so formatting macros get properly resolved to text.

Signed-off-by: majiayu000 <1835304752@qq.com>

* test: add regression test for LaTeX formatting in table cells

Add test_latex_table_formatting_in_cells to verify multicolumn/multirow
cells with \textbf, \textit, \tiny, and nested formatting produce clean
text output without raw LaTeX commands (issue #3199).

Also narrow except clause from bare Exception to LatexWalkerParseError
for both multicolumn and multirow parse fallbacks.

Signed-off-by: majiayu000 <1835304752@qq.com>

---------

Signed-off-by: majiayu000 <1835304752@qq.com>
L
lif committed
89c68f8ec373c6012c963a39ea70f5c122e0e779
Parent: f283484
Committed by GitHub <noreply@github.com> on 3/30/2026, 5:31:26 AM