Skip to content

Commit a14ca7b

Browse files
committed
Merge branch 'fix/bot_editImage' of https://github.com/siliconflow/bizyair_frontend into fix/bot_editImage
2 parents 168e9bf + 6a179e2 commit a14ca7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/assistant/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,13 @@ export function formatOutputTextLight(text: string): string {
363363
// 基本的Markdown格式转换
364364
let formatted = text
365365

366-
// 处理标题格式
366+
// 处理标题格式
367367
formatted = formatted.replace(/^(#{1,6})\s+(.+)$/gm, (hashes, content) => {
368368
const level = Math.min(hashes.length, 6)
369369
return `<div class="markdown-heading level-${level}">${content}</div>`
370370
})
371371

372-
// 处理中文标签格式
372+
// 处理中文标签格式
373373
formatted = formatted.replace(/#(\S+?)(?=#|\s|$)/g, (match, tagContent) => {
374374
if (tagContent.includes('<') && !tagContent.includes('>')) {
375375
return match

0 commit comments

Comments
 (0)