@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
22 lines (18 loc) • 428 B
text/typescript
import { FC, ReactNode } from 'react';
export interface MarkdownElementProps<T = any> {
children: ReactNode;
id: string;
node: {
properties: T;
};
tagName: string;
type: string;
}
export type MarkdownPluginScope = 'user' | 'assistant' | 'all';
export interface MarkdownElement {
Component: FC<MarkdownElementProps>;
rehypePlugin?: any;
remarkPlugin?: any;
scope: MarkdownPluginScope;
tag: string;
}