Skip to content

fix(math): preserve display math subscripts - #326

Open
PathGao wants to merge 24 commits into
alecdotdev:masterfrom
PathGao:fix/display-math-underscores
Open

fix(math): preserve display math subscripts#326
PathGao wants to merge 24 commits into
alecdotdev:masterfrom
PathGao:fix/display-math-underscores

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Display equations with multiple subscripts now render as equations instead of showing literal $$…$$ text. Comrak was applying Markdown emphasis before KaTeX received the display-math source; the backend preserves underscores within display delimiters and restores them after conversion.

Fixes #174.

Validation

Merge order

This is the next commit in the current chain and should merge after #325.

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@alecdotdev #326 fixes the newly reproduced #174 regression. It is the next commit after #325; the attached input was verified in an isolated macOS release bundle, not /Applications/Markpad.app.

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.

math rendering problem with \bar, \vec and possibly others

1 participant