From 2ee9bed73d946ca2e0dd6f607753ad70fac3384a Mon Sep 17 00:00:00 2001 From: anand-106 Date: Fri, 19 Sep 2025 18:17:46 +0530 Subject: [PATCH 1/2] start --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 54b31f9fcf..864e97de91 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ yarn-debug.log* yarn-error.log* .pnpm-debug.log* + # local env files .env.local .env.development.local From 31aca9ff85fa7e6d53070fb25d682ba691ef8433 Mon Sep 17 00:00:00 2001 From: anand-106 Date: Sat, 20 Sep 2025 17:44:57 +0530 Subject: [PATCH 2/2] fix: add KaTeX CSS import to fix math rendering - Add @import 'katex/dist/katex.min.css' to globals.css - Fixes broken KaTeX rendering for inline math and math in tables - Resolves issue #1213 The KaTeX JavaScript library was already available via streamdown, but the CSS stylesheet was missing, causing math expressions to render without proper styling. --- app/globals.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/globals.css b/app/globals.css index 4be4d707ec..465f03527b 100644 --- a/app/globals.css +++ b/app/globals.css @@ -4,6 +4,9 @@ /* include utility classes in streamdown */ @source '../node_modules/streamdown/dist/index.js'; +/* Add KaTeX CSS for math rendering */ +@import 'katex/dist/katex.min.css'; + /* custom variant for setting dark mode programmatically */ @custom-variant dark (&:is(.dark, .dark *));