Skip to content

Commit

Permalink
🎨 Improve HTML formula clipping siyuan-note/siyuan#11743
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jun 17, 2024
1 parent 40478bd commit 2977d4f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions h2m.go
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,6 @@ func (lute *Lute) genASTByDOM(n *html.Node, tree *parse.Tree) {
return
}

if nil == n.FirstChild {
return
}

// The browser extension supports Zhihu formula https://github.com/siyuan-note/siyuan/issues/5599
if tex := strings.TrimSpace(util.DomAttrValue(n, "data-tex")); "" != tex {
if strings.HasSuffix(strings.TrimSpace(tex), "\\\\") {
Expand Down
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.

Loading

0 comments on commit 2977d4f

Please sign in to comment.