|
@@ -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
|
|
|
}
|
|
|
}
|