mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 21:08:49 +01:00
✨ 行级元素支持多重样式类型 https://github.com/siyuan-note/siyuan/issues/2911
This commit is contained in:
parent
cd1e638cca
commit
8ceac926e3
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