Skip to content

fix: add KaTeX math rendering support to FileViewer markdown preview#233

Merged
agegr merged 3 commits into
agegr:mainfrom
fallleave001:fix/katex-fileviewer
Jul 25, 2026
Merged

fix: add KaTeX math rendering support to FileViewer markdown preview#233
agegr merged 3 commits into
agegr:mainfrom
fallleave001:fix/katex-fileviewer

Conversation

@fallleave001

Copy link
Copy Markdown

Summary

Adds KaTeX math rendering ($...$ / $$...$$) to the FileViewer markdown preview.

Base: upstream/main v0.8.0
Changes: lib/markdown.ts +2 lines

Changes

Added remarkMath and rehypeKatex to the preview plugin lists, matching the chat view configuration (which already rendered math correctly).

Testing

Build passes. KaTeX CSS is already loaded globally in layout.tsx.

@agegr
agegr merged commit 1c8a3dc into agegr:main Jul 25, 2026
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.

3 participants