+ Parse `\pandocfootnotemark{n}` and `\pandocfootnotetext{n}{..}`,
as produced by the LaTeX writer for notes in tables, captions,
etc. Marks and texts are matched by id.
+ Resolve footnote marks inside resolved footnote texts, so that
nested notes are not lost.
+ Track `\addtocounter{footnote}{n}`, so that `\footnotemark` and
`\footnotetext` with counter adjustments (as produced by earlier
versions of pandoc) are matched correctly. Previously all
of the texts were assigned to the last mark.
+ Ignore definitions of `\pandocbounded`, `\pandocfootnotemark`,
and `\pandocfootnotetext` (e.g. from pandoc's template), which
the reader handles directly. Previously these definitions were
expanded, producing garbage and losing content.
See #11936.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>