Files
deer-flow/frontend/src/core/streamdown/plugins.ts

15 lines
428 B
TypeScript
Raw Normal View History

2026-01-30 16:41:18 +08:00
import rehypeKatex from "rehype-katex";
import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
import type { StreamdownProps } from "streamdown";
export const streamdownPlugins = {
remarkPlugins: [
remarkGfm,
[remarkMath, { singleDollarTextMath: true }],
2026-01-30 16:41:18 +08:00
] as StreamdownProps["remarkPlugins"],
rehypePlugins: [
[rehypeKatex, { output: "html" }],
] as StreamdownProps["rehypePlugins"],
};