mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 15:11:48 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
816c5a50e4
1 changed files with 2 additions and 2 deletions
|
|
@ -114,10 +114,10 @@ func NestedInlines2FlattedSpans(tree *parse.Tree) {
|
|||
}
|
||||
|
||||
if entering {
|
||||
span = &ast.Node{Type: ast.NodeTextMark, TextMarkType: strings.Join(tags, " "), TextMarkTextContent: string(n.Tokens)}
|
||||
span = &ast.Node{Type: ast.NodeTextMark, TextMarkType: strings.Join(tags, " "), TextMarkTextContent: string(html.EscapeHTML(n.Tokens))}
|
||||
if ast.NodeInlineMathContent == n.Type {
|
||||
span.TextMarkTextContent = ""
|
||||
span.TextMarkInlineMathContent = string(n.Tokens)
|
||||
span.TextMarkInlineMathContent = string(html.EscapeHTML(n.Tokens))
|
||||
}
|
||||
if ast.NodeLinkText == n.Type && !n.ParentIs(ast.NodeImage) {
|
||||
var link *ast.Node
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue