Skip to content

Ignore braces in array preamble. (mathjax/MathJax#3565)#1508

Open
dpvc wants to merge 1 commit into
developfrom
issue3565
Open

Ignore braces in array preamble. (mathjax/MathJax#3565)#1508
dpvc wants to merge 1 commit into
developfrom
issue3565

Conversation

@dpvc

@dpvc dpvc commented Jun 15, 2026

Copy link
Copy Markdown
Member

This PR adds rules to the array preamble column parser to ignore braces within the preamble (when they aren't used to enclose an argument to one of the column specifications). This isn't exactly in line with LaTeX, which does seem to process the braces in some way, but I can't figure out what it is, and don't see any documentation for it. It looks like it might be to allow multi-character column specifiers, but then it also seem to allow multiple copies of a single column specifier, but not mixed ones. So I'm not sure what it actually does. In any case, ignoring them seems to handle the situation given in the original issue tracker.

I also added test for this situation.

Resolves issue mathjax/MathJax#3565.

@dpvc dpvc requested a review from zorkow June 15, 2026 10:41
@dpvc dpvc added this to the v4.1.3 milestone Jun 15, 2026
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.47%. Comparing base (a65456c) to head (5dc3abe).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1508   +/-   ##
========================================
  Coverage    86.47%   86.47%           
========================================
  Files          340      340           
  Lines        86125    86127    +2     
  Branches      3206     3206           
========================================
+ Hits         74476    74478    +2     
  Misses       11649    11649           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant