mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
38e38e83a4
commit
7bdff9eaeb
3 changed files with 7 additions and 9 deletions
|
|
@ -943,19 +943,19 @@ func markReplaceSpan(n *ast.Node, unlinks *[]*ast.Node, keywords []string, markS
|
|||
c.TextMarkTextContent = string(c.Tokens)
|
||||
if n.IsTextMarkType("a") {
|
||||
c.TextMarkAHref, c.TextMarkATitle = n.TextMarkAHref, n.TextMarkATitle
|
||||
} else if n.IsTextMarkType("block-ref") {
|
||||
} else if treenode.IsBlockRef(n) {
|
||||
c.TextMarkBlockRefID = n.TextMarkBlockRefID
|
||||
c.TextMarkBlockRefSubtype = n.TextMarkBlockRefSubtype
|
||||
} else if n.IsTextMarkType("file-annotation-ref") {
|
||||
} else if treenode.IsFileAnnotationRef(n) {
|
||||
c.TextMarkFileAnnotationRefID = n.TextMarkFileAnnotationRefID
|
||||
}
|
||||
} else if ast.NodeTextMark == c.Type {
|
||||
if n.IsTextMarkType("a") {
|
||||
c.TextMarkAHref, c.TextMarkATitle = n.TextMarkAHref, n.TextMarkATitle
|
||||
} else if n.IsTextMarkType("block-ref") {
|
||||
} else if treenode.IsBlockRef(n) {
|
||||
c.TextMarkBlockRefID = n.TextMarkBlockRefID
|
||||
c.TextMarkBlockRefSubtype = n.TextMarkBlockRefSubtype
|
||||
} else if n.IsTextMarkType("file-annotation-ref") {
|
||||
} else if treenode.IsFileAnnotationRef(n) {
|
||||
c.TextMarkFileAnnotationRefID = n.TextMarkFileAnnotationRefID
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue