Skip to content

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

Open
fallleave001 wants to merge 1 commit into
agegr:mainfrom
fallleave001:fix/katex-fileviewer
Open

fix: add KaTeX math rendering support to FileViewer markdown preview#233
fallleave001 wants to merge 1 commit 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.

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.

2 participants