Gate 1 integration: shared streamdown config in reasoning, teaserText flattens \(...\)

This commit is contained in:
Amos
2026-08-22 09:42:39 +03:00
parent ef488224bc
commit 2c522116c0
3 changed files with 13 additions and 16 deletions
+2 -2
View File
@@ -346,7 +346,7 @@ export type MessageResponseProps = ComponentProps<typeof Streamdown>;
//
// mermaid: the plugin supplies the renderer; the `mermaid` PROP (below)
// carries the dark theme + the error fallback component.
const streamdownPlugins = {
export const streamdownPlugins = {
cjk: {
...cjk,
remarkPluginsAfter: [...cjk.remarkPluginsAfter, remarkBreaks],
@@ -364,7 +364,7 @@ const mermaidTheme: MermaidConfig = {
theme: "dark",
};
const mermaidOptions: MermaidOptions = {
export const mermaidOptions: MermaidOptions = {
config: mermaidTheme,
errorComponent: MermaidError,
};