Skip to content

fix(math): respect explicit native mathml inline display - #419

Closed
RovshanMuradov wants to merge 1 commit into
kepano:mainfrom
RovshanMuradov:fix/respect-mathml-inline
Closed

RovshanMuradov wants to merge 1 commit into
kepano:mainfrom
RovshanMuradov:fix/respect-mathml-inline

Conversation

@RovshanMuradov

@RovshanMuradov RovshanMuradov commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #417

A native <math display="inline"> could still be promoted to block math by layout heuristics. An explicit display="inline" on <math> is now respected.

@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.

Explicit native MathML inline display is overridden by block heuristics

1 participant