UNPKG

@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.

10 lines (7 loc) 279 B
import { remark } from 'remark'; import remarkGfm from 'remark-gfm'; import remarkHtml from 'remark-html'; export const parseMarkdown = async (content: string) => { const file = await remark().use(remarkGfm).use(remarkHtml).process(content.trim()); return String(file); };