Skip to content

feat: add LaTeX/math rendering support with KaTeX#84

Merged
k1LoW merged 1 commit intok1LoW:mainfrom
ysaito8015:feat/katex-math-support
Mar 8, 2026
Merged

feat: add LaTeX/math rendering support with KaTeX#84
k1LoW merged 1 commit intok1LoW:mainfrom
ysaito8015:feat/katex-math-support

Conversation

@ysaito8015
Copy link
Copy Markdown
Contributor

Summary

The first implementation of LaTeX rendering support using KaTeX. MathJax can be added as an alternative later.

  • Add LaTeX math rendering support using KaTeX
  • Inline math: $...$, Block math: $$...$$
  • Add remark-math, rehype-katex, and katex dependencies
  • Add testdata/math.md for testing
  • Update MarkdownViewer.tsx to include math plugins
  • Import KaTeX CSS for proper styling
  • Update README.md to list math rendering in features

Test plan

  • All existing tests pass (151 tests)

  • Build succeeds

  • Tested with testdata/math.md

    • Verified inline math renders correctly
    • Verified block math renders correctly
    • see screenshot below
Screenshot from 2026-03-08 20-06-41

Closes #83

@k1LoW k1LoW added enhancement New feature or request tagpr:minor labels Mar 8, 2026
@k1LoW
Copy link
Copy Markdown
Owner

k1LoW commented Mar 8, 2026

@ysaito8015 GREAT WORK!!!! Thank you!!!!!

@k1LoW k1LoW merged commit 8296ae7 into k1LoW:main Mar 8, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tagpr:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discussion: add LaTeX/math rendering support

2 participants