fix(latex): discard arguments of filtered spacing commands (#3245)
Commands like \vspace{-1mm} and \hspace{0.2cm} were being filtered
at the command level but their argument values were leaking through as
plain text nodes. Ensure that when a spacing/ignored command is
encountered, its arguments are also suppressed.
- Add vspace, hspace, vspace*, hspace*, addvspace to MACROS_SPACING
- Guard against spacing/ignored macros in _process_macro_node_inline
so their brace arguments are not extracted as inline text
- Guard against spacing/ignored macros in _nodes_to_text so dimension
values do not leak when processing footnotes, captions, etc.
- Update ground truth files to reflect corrected output
Fixes #3240
Signed-off-by: Smeet Agrawal <smeetagrawal23@gmail.com>
Co-authored-by: Smeet Agrawal <smeetagrawal23@gmail.com> S
Smeet Agrawal committed
61809252eccc09d6af05530fd8921a4cdb46edcc
Parent: 6699642
Committed by GitHub <noreply@github.com>
on 4/8/2026, 9:19:56 AM