Skip to content

Commit

Permalink
🎨 Improve HTML clipping siyuan-note/siyuan#13056
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 8, 2024
1 parent b4c30cb commit 1a256f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion javascript/lute.min.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions protyle.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ func (lute *Lute) Md2BlockDOM(markdown string, reserveEmptyParagraph bool) (vHTM
func (lute *Lute) Md2BlockDOMTree(markdown string, reserveEmptyParagraph bool) (vHTML string, tree *parse.Tree) {
tree = parse.Parse("", []byte(markdown), lute.ParseOptions)

// 先将 TextMark 转换为 Inlines https://github.com/siyuan-note/siyuan/issues/13056
parse.TextMarks2Inlines(tree)

parse.TextMarks2Inlines(tree) // 先将 TextMark 转换为 Inlines https://github.com/siyuan-note/siyuan/issues/13056
parse.NestedInlines2FlattedSpansHybrid(tree, false)
if reserveEmptyParagraph {
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
Expand Down

0 comments on commit 1a256f0

Please sign in to comment.