修复mermaid渲染遗漏了 /(斜杠)

修复mermaid渲染遗漏了 /(斜杠)
This commit is contained in:
zhb 2026-07-09 16:23:07 +08:00 committed by GitHub
parent b9fb3eb9ef
commit 83f8c66233
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ type MermaidThemeColors = {
const FLOWCHART_START = /^\s*(?:graph|flowchart)\b/i
const FLOWCHART_NODE_START = /^([A-Za-z][\w-]*)\[/
const UNQUOTED_FLOWCHART_LABEL_UNSAFE = /<br\s*\/?>|[{}[\]*]/i
const UNQUOTED_FLOWCHART_LABEL_UNSAFE = /<br\s*\/?>|[{}[\]*\/]/i
function isFlowchartDiagram(code: string) {
const firstMeaningfulLine = code