Skip to content

The open source coding agent.

TypeScript

fix(ui): allow KaTeX inline math to be followed by punctuation (#11033)

zerone0x9424f829eb67
diff --git a/packages/ui/src/context/marked.tsx b/packages/ui/src/context/marked.tsx
index 71881353ae3..0c6d58b9353 100644
--- a/packages/ui/src/context/marked.tsx
+++ b/packages/ui/src/context/marked.tsx
@@ -475,6 +475,7 @@ export const { use: useMarked, provider: MarkedProvider } = createSimpleContext(
},
markedKatex({
throwOnError: false,
+ nonStandard: true,
}),
markedShiki({
async highlight(code, lang) {