fix(export): escape backslashes in tag table cells
A backslash right before a pipe, as in the tag name a\|b, turned the escaped pipe into "\|": the table splitter reads "\\" as an escaped backslash and the pipe as a column separator, shifting the row. Cells now escape '\' before '|'. Recorded in PLAN 5.8.
This commit is contained in:
1 parent
b6e8e07d78
commit
9277e2a331
3 files changed
+29
-4
No files matched your search
+1
-1
@@ -246,7 +246,7 @@ card_tags: (card_id, tag_id) 复合主键,双向 ON DELETE CASCADE
|
||||
- 空列也保留(体现看板结构);无标题卡片以 `### #61` 呈现
|
||||
- 转义规则:
|
||||
- 标签名以行内代码呈现,定界反引号数量 = 名称内最长连续反引号串长度 + 1(名称以反引号开头/结尾时两侧加空格)
|
||||
- 标签总表单元格内 `|` → `\|`,换行 → `<br>`
|
||||
- 标签总表单元格内 `\` → `\\`(先于 `|` 处理,否则 `a\|b` 中的 `|` 会被当成列分隔符),`|` → `\|`,换行 → `<br>`
|
||||
- 卡片正文与列 description **原样输出**(接受其中 Markdown 结构干扰文档层级,已接受)
|
||||
|
||||
### 5.9 主题(亮 / 暗 / 跟随系统)
|
||||
|
||||
Reference in new issue
Block a user