Skip to content

Rework math text editing to normalize user input to LaTeX#59

Open
shreekardittakavi wants to merge 5 commits into
developfrom
issue-58-latex-math-renderer
Open

Rework math text editing to normalize user input to LaTeX#59
shreekardittakavi wants to merge 5 commits into
developfrom
issue-58-latex-math-renderer

Conversation

@shreekardittakavi

@shreekardittakavi shreekardittakavi commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements #58.

  • Add shared LaTeX normalization for common typed math symbols, superscripts/subscripts, inline math, and display math.
  • Route quiz and flashcard markdown display through a shared KaTeX-backed LatexMarkdown renderer.
  • Normalize user-edited quiz and flashcard math on blur and again before save/evaluation payloads.
  • Normalize note MathLive blocks, note block conversion to math, and imported markdown inline/display math before storage.
  • Detect LaTeX regions in note rich-text blocks and promote display/standalone regions into real note math blocks on editor load, autosave, paste/import, and API persistence.
  • Keep single-dollar $...$ and \(...\) note math inline using the existing note-inline-math span format.
  • Add accessible labels for study library action menu triggers used by the updated tests.

Verification

  • pnpm test lib/notes/math-regions.test.ts lib/notes/parse-markdown.test.ts lib/notes/markdown.test.ts lib/notes/persistence.test.ts components/note-editor/note-editor.test.tsx
  • pnpm lint passes with one existing warning in components/note-editor/code-block-view.tsx
  • pnpm test
  • pnpm build

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
task-master Ready Ready Preview, Comment Jun 10, 2026 5:32am

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