mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-31 15:47:05 +00:00
14 lines
427 B
TypeScript
14 lines
427 B
TypeScript
import markdownComponents, { markdownPlugins, preprocessLaTeX } from '@/components/chat/chat-content/config';
|
|
import { GPTVis } from '@antv/gpt-vis';
|
|
import React from 'react';
|
|
|
|
const MarkDownContext: React.FC<{ children: string }> = ({ children }) => {
|
|
return (
|
|
<GPTVis components={{ ...markdownComponents }} {...markdownPlugins}>
|
|
{preprocessLaTeX(children)}
|
|
</GPTVis>
|
|
);
|
|
};
|
|
|
|
export default MarkDownContext;
|