Skip to content

fix(markdown): support LaTeX backslash math delimiters - #518

Merged
huichen merged 1 commit into
mainfrom
fix/markdown-latex-delimiters
Sep 7, 2026
Merged

huichen merged 1 commit into
mainfrom
fix/markdown-latex-delimiters

Conversation

@huichen

@huichen huichen commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add native Markdown tokenization for LaTeX inline \(...\) and standalone display \[...\] formulas, preserving existing dollar-delimited math.
  • Use the same extension for desktop streaming block segmentation, preserving original source offsets and keeping unfinished display formulas together across blank lines.
  • Leave code spans/fences, HTML, escaped delimiters, and link destinations under their existing Markdown rules.
  • Add parser, streaming, and KaTeX rendering regressions, including the reported boxed answer and aligned derivation.

Validation

  • Markdown suite: 165 tests passed
  • Desktop TypeScript check and shared Markdown package TypeScript check passed
  • ESLint passed for changed desktop files
  • Desktop production build passed
  • git diff --check passed

Scope

Source/frontend fix only; no packaged desktop app replacement or release deployment.

@huichen
huichen merged commit a63af90 into main Sep 7, 2026
12 checks passed
@huichen
huichen deleted the fix/markdown-latex-delimiters branch September 7, 2026 10:05
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