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