Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsing issue with tex #10160

Closed
ultronozm opened this issue Sep 7, 2024 · 1 comment
Closed

parsing issue with tex #10160

ultronozm opened this issue Sep 7, 2024 · 1 comment
Labels

Comments

@ultronozm
Copy link

To reproduce the issue, use pandoc (e.g., via https://pandoc.org/try/) to convert the following tex file to html:

\documentclass{article}

\begin{document}

\begin{equation}
  [0,1)
\end{equation}

\begin{table}[h]
\end{table}

\end{document}

This yields the error:

unexpected end of input
expecting \end{equation}

I've checked that the half open/closed paren/bracket as well as the "[h]" argument for the table environment are necessary (the error goes away if these features are omitted), but have not tried further variations. A work-around is to use "\left[ ... \right)".

@ultronozm ultronozm added the bug label Sep 7, 2024
@jgm
Copy link
Owner

jgm commented Sep 7, 2024

This is because we're trying to skip bracketed options -- which these environments shouldn't have. Easy to fix.

@jgm jgm closed this as completed in 74221a0 Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants