Skip to content

Commit

Permalink
🎨 导出 PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 authored and leolee9086 committed Oct 4, 2022
1 parent f718dea commit 14bad05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/model/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,10 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros bool) (ret *parse.T
n.InsertBefore(&ast.Node{Type: ast.NodeFootnotesRef, Tokens: []byte("^" + refFoot.refNum), FootnotesRefId: refFoot.refNum, FootnotesRefLabel: []byte("^" + refFoot.refNum)})
}
unlinks = append(unlinks, n)
if nil != n.Next && ast.NodeKramdownSpanIAL == n.Next.Type {
// 引用加排版标记(比如颜色)重叠时丢弃后面的排版属性节点
unlinks = append(unlinks, n.Next)
}
return ast.WalkSkipChildren
})
for _, n := range unlinks {
Expand Down

0 comments on commit 14bad05

Please sign in to comment.