Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
b5266a1e16
1 changed files with 6 additions and 1 deletions
|
@ -142,7 +142,12 @@ func NodeStaticContent(node *ast.Node) string {
|
|||
buf.Write(n.Tokens)
|
||||
case ast.NodeText, ast.NodeFileAnnotationRefText, ast.NodeFootnotesRef,
|
||||
ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:
|
||||
buf.Write(n.Tokens)
|
||||
tokens := n.Tokens
|
||||
if IsChartCodeBlockCode(n) {
|
||||
// 图表块的内容在数据库 `blocks` 表 `content` 字段中被转义 https://github.com/siyuan-note/siyuan/issues/6326
|
||||
tokens = html.UnescapeHTML(tokens)
|
||||
}
|
||||
buf.Write(tokens)
|
||||
case ast.NodeTextMark:
|
||||
if n.IsTextMarkType("tag") {
|
||||
buf.WriteByte('#')
|
||||
|
|
Loading…
Add table
Reference in a new issue