Skip to content

Skip at most one argument to LaTeX tabular newline #10707

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

silby
Copy link
Contributor

@silby silby commented Mar 19, 2025

In LaTeX's tabular environment, the tabular newline takes an optional argument that we skip. But it only takes a single optional argument, and any further square-bracketed text that follows shouldn't be skipped.

Fixes #7512, specifically the followup issue identified by @fedeinthemix, and also adds a test for the original problem raised in that issue which was already fixed at some point.

In LaTeX's tabular environment, the tabular newline takes an optional
argument that we skip. But it only takes a single optional argument, and
any further square-bracketed text that follows shouldn't be skipped.

Fixes jgm#7512, and also adds a test for the original problem raised in
that issue which was already fixed at some point.
@jgm jgm merged commit 0f71b9e into jgm:main Mar 19, 2025
11 of 14 checks passed
@jgm
Copy link
Owner

jgm commented Mar 19, 2025

excellent, thanks

massifrg pushed a commit to massifrg/pandoc that referenced this pull request May 7, 2025
In LaTeX's tabular environment, the tabular newline takes an optional
argument that we skip. But it only takes a single optional argument, and
any further square-bracketed text that follows shouldn't be skipped.

Fixes jgm#7512, and also adds a test for the original problem raised in
that issue which was already fixed at some point.
christopherkenny pushed a commit to christopherkenny/pandoc that referenced this pull request May 23, 2025
In LaTeX's tabular environment, the tabular newline takes an optional
argument that we skip. But it only takes a single optional argument, and
any further square-bracketed text that follows shouldn't be skipped.

Fixes jgm#7512, and also adds a test for the original problem raised in
that issue which was already fixed at some point.
christopherkenny pushed a commit to christopherkenny/pandoc that referenced this pull request May 23, 2025
In LaTeX's tabular environment, the tabular newline takes an optional
argument that we skip. But it only takes a single optional argument, and
any further square-bracketed text that follows shouldn't be skipped.

Fixes jgm#7512, and also adds a test for the original problem raised in
that issue which was already fixed at some point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LaTeX reader sometimes omits expressions containing square brackets [
2 participants