Skip to content

fix(math): preserve allowed root presentation attributes - #420

Closed
RovshanMuradov wants to merge 2 commits into
kepano:mainfrom
RovshanMuradov:fix/preserve-mathml-root-attrs
Closed

RovshanMuradov wants to merge 2 commits into
kepano:mainfrom
RovshanMuradov:fix/preserve-mathml-root-attrs

Conversation

@RovshanMuradov

@RovshanMuradov RovshanMuradov commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #418

Rebuilding <math> dropped the root's dir, displaystyle and mathsize, although they are in ALLOWED_ATTRIBUTES. They are now copied from the source root.

@RovshanMuradov
RovshanMuradov marked this pull request as ready for review October 12, 2026 07:22
@RovshanMuradov
RovshanMuradov marked this pull request as draft October 12, 2026 08:30
@RovshanMuradov

Copy link
Copy Markdown
Contributor Author

Closing to keep the review queue small: on six real arXiv HTML papers (~10k formulas) this change makes no difference to the extracted HTML or Markdown. Happy to reopen if a real page needs it.

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.

Native MathML normalization drops already-allowed root presentation attributes

1 participant