mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-18 12:04:45 +08:00
feat: support Github Flavored Markdown
This commit is contained in:
13
frontend/src/core/streamdown/plugins.ts
Normal file
13
frontend/src/core/streamdown/plugins.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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 }]],
|
||||
] as StreamdownProps["remarkPlugins"],
|
||||
rehypePlugins: [
|
||||
[rehypeKatex, { output: "html" }],
|
||||
] as StreamdownProps["rehypePlugins"],
|
||||
};
|
||||
Reference in New Issue
Block a user