Skip to content

Latex reader fails parse nested tables #4746

Closed
@krobelus

Description

@krobelus

This should be valid latex, however it fails to parse with pandoc compiled from today's master branch. I'm looking into the latex reader, maybe someone can give me pointers where this can be fixed

input: tables.tex

\begin{tabular}{c c}
  \begin{tabular}{c} a \\ \end{tabular}
  &
  \\
\end{tabular}

Executing pandoc tables.tex gives me this error:

Error at "source" (line 5, column 1):
unexpected Tok "source" (line 5, column 1) (CtrlSeq "end") "\\end"
expecting end of input
\end{tabular}
^

pandoc 2.2.1
Compiled with pandoc-types 1.17.5, texmath 0.11, skylighting 0.7.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions