mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve the handling of inline-math containing | in the table https://github.com/siyuan-note/siyuan/issues/9227
This commit is contained in:
parent
1e2f687732
commit
4ed3efd7dd
2 changed files with 7 additions and 2 deletions
|
|
@ -271,6 +271,11 @@ func renderTemplate(p, id string) (string, error) {
|
|||
unlinks = append(unlinks, n)
|
||||
}
|
||||
}
|
||||
} else if n.IsTextMarkType("inline-math") {
|
||||
if n.ParentIs(ast.NodeTableCell) {
|
||||
// 表格中的公式中带有管道符时使用 HTML 实体替换管道符 Improve the handling of inline-math containing `|` in the table https://github.com/siyuan-note/siyuan/issues/9227
|
||||
n.TextMarkInlineMathContent = strings.ReplaceAll(n.TextMarkInlineMathContent, "|", "|")
|
||||
}
|
||||
}
|
||||
return ast.WalkContinue
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue