Skip to content

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

Closed
PathGao wants to merge 1 commit into
sftwrdotdev:fix/migrate-preview-full-width-preferencefrom
PathGao:fix/display-math-underscores
Closed

fix(math): preserve display math subscripts#326
PathGao wants to merge 1 commit into
sftwrdotdev:fix/migrate-preview-full-width-preferencefrom
PathGao:fix/display-math-underscores

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

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

@PathGao
PathGao force-pushed the fix/display-math-underscores branch from 2c4f7cc to fd471c5 Compare August 2, 2026 05:44
@PathGao
PathGao changed the base branch from master to fix/migrate-preview-full-width-preference August 2, 2026 05:45
@PathGao

PathGao commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by native Stack PR #351 (Stack #353). Closing this fork-head PR so #351 is the active review path.

@PathGao PathGao closed this Aug 2, 2026
@PathGao
PathGao deleted the fix/display-math-underscores branch August 2, 2026 08:34
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