import MarkdownIt from '@/lib/markdown-it.min.js'; // import MarkdownIt from '@/lib/markdown-it.esm.js' import hljs from "@/lib/highlight/highlight-uni.min.js"; import parseHtml from '@/lib/html-parser.js'; // import DOMPurify from '@/lib/dompurify@3.2.4es.js'; export let codeDataList = [] const md = new MarkdownIt({ html: true, // 允许 HTML 标签 linkify: true, // 自动解析 URL typographer: true, // 美化标点符号 tables: true, breaks: true, // 让 \n 自动换行 langPrefix: 'language-', // 代码高亮前缀 // 如果结果以
line ? `
${html}