瀏覽代碼

fix: remove redundant Mermaid graph direction enforcement (#19024)

tags/1.4.0
Hao Cheng 6 月之前
父節點
當前提交
2a3cc43b62
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 0 行新增4 行删除
  1. 0
    4
      web/app/components/base/mermaid/utils.ts

+ 0
- 4
web/app/components/base/mermaid/utils.ts 查看文件

@@ -22,10 +22,6 @@ export function preprocessMermaidCode(code: string): string {
.replace(/section\s+([^:]+):/g, (match, sectionName) => `section ${sectionName}:`)
// Fix common syntax issues
.replace(/fifopacket/g, 'rect')
// Ensure graph has direction
.replace(/^graph\s+((?:TB|BT|RL|LR)*)/, (match, direction) => {
return direction ? match : 'graph TD'
})
// Clean up empty lines and extra spaces
.trim()
}

Loading…
取消
儲存