We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 168e9bf + 6a179e2 commit a14ca7bCopy full SHA for a14ca7b
1 file changed
src/components/assistant/util.ts
@@ -363,13 +363,13 @@ export function formatOutputTextLight(text: string): string {
363
// 基本的Markdown格式转换
364
let formatted = text
365
366
- // 处理标题格式
+ // 处理标题格式
367
formatted = formatted.replace(/^(#{1,6})\s+(.+)$/gm, (hashes, content) => {
368
const level = Math.min(hashes.length, 6)
369
return `<div class="markdown-heading level-${level}">${content}</div>`
370
})
371
372
- // 处理中文标签格式
+ // 处理中文标签格式
373
formatted = formatted.replace(/#(\S+?)(?=#|\s|$)/g, (match, tagContent) => {
374
if (tagContent.includes('<') && !tagContent.includes('>')) {
375
return match
0 commit comments