mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
修复mermaid渲染遗漏了 /(斜杠)
修复mermaid渲染遗漏了 /(斜杠)
This commit is contained in:
parent
b9fb3eb9ef
commit
83f8c66233
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user