Skip to content

Commit

Permalink
🎨 Vditor 支持 ToC 添加悬浮菜单及 bug 修复 Vanessa219/vditor#217
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 11, 2020
1 parent e2e5182 commit fc65337
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion javascript/lute.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/lute.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (lute *Lute) genASTByVditorDOM(n *html.Node, tree *parse.Tree) {
}
}
} else if "toc-block" == dataType {
node := &ast.Node{Type: ast.NodeText, Tokens: []byte("[toc]")}
node := &ast.Node{Type: ast.NodeText, Tokens: []byte("[toc]\n\n")}
tree.Context.Tip.AppendChild(node)
}
return
Expand Down

0 comments on commit fc65337

Please sign in to comment.