🎨 行级元素支持嵌套和交叉 https://github.com/siyuan-note/siyuan/issues/2911
This commit is contained in:
parent
ef17af099a
commit
294d6865fa
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,8 @@ func NodeStaticContent(node *ast.Node) string {
|
|||
case ast.NodeText, ast.NodeFileAnnotationRefText, ast.NodeFootnotesRef,
|
||||
ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:
|
||||
buf.Write(n.Tokens)
|
||||
case ast.NodeTextMark:
|
||||
buf.WriteString(n.TextMarkTextContent)
|
||||
case ast.NodeBackslash:
|
||||
buf.WriteByte(lex.ItemBackslash)
|
||||
case ast.NodeBackslashContent:
|
||||
|
@ -228,6 +230,7 @@ var typeAbbrMap = map[string]string{
|
|||
"NodeSub": "sub",
|
||||
"NodeKbd": "kbd",
|
||||
"NodeUnderline": "underline",
|
||||
"NodeTextMark": "textmark",
|
||||
}
|
||||
|
||||
var abbrTypeMap = map[string]string{}
|
||||
|
|
Loading…
Add table
Reference in a new issue