speccrew 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -67,6 +67,19 @@ graph TB
|
|
|
67
67
|
| `/` | File paths (`/pages/index`) | Remove leading `/` or use parentheses: `pages/index` |
|
|
68
68
|
| `(` `)` | Function calls (`handleQuery()`) | Remove parentheses: `handleQuery` |
|
|
69
69
|
|
|
70
|
+
**When Special Characters Must Be Preserved:**
|
|
71
|
+
|
|
72
|
+
If node text must contain parentheses `()`, curly braces `{}`, square brackets `[]`, or colons `:`, wrap the entire text in double quotes to prevent Mermaid from misinterpreting them as shape definitions or syntax elements.
|
|
73
|
+
|
|
74
|
+
| Wrong (Parse Error) | Correct (Quoted) |
|
|
75
|
+
|---------------------|------------------|
|
|
76
|
+
| `P1[选择对比组(如:面部左脸)]` | `P1["选择对比组(如:面部左脸)"]` |
|
|
77
|
+
| `P2[上传图片(1-N张)]` | `P2["上传图片(1-N张)"]` |
|
|
78
|
+
| `A[Task{ urgent }]` | `A["Task{ urgent }"]` |
|
|
79
|
+
| `B[Array[0]]` | `B["Array[0]"]` |
|
|
80
|
+
|
|
81
|
+
**Important:** The rule "Quoted node text [\"text\"]" in the Prohibited list refers to unnecessary quoting of plain text. When special characters are present, quoting becomes **required** for correct parsing.
|
|
82
|
+
|
|
70
83
|
### 5. Multi-line Text Handling
|
|
71
84
|
|
|
72
85
|
```
|