Skip to content

Commit

Permalink
🎨 Update the dom of code blocks siyuan-note/siyuan#10769
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Aug 15, 2024
1 parent 1712157 commit 68ce696
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 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.

5 changes: 0 additions & 5 deletions protyle.go
Original file line number Diff line number Diff line change
Expand Up @@ -1990,11 +1990,6 @@ func (lute *Lute) setBlockIAL(n *html.Node, node *ast.Node) (ialTokens []byte) {
ialTokens = append(ialTokens, []byte(" linenumber=\""+linenumber+"\"")...)
}

if vscroll := util.DomAttrValue(n, "vscroll"); "" != vscroll {
node.SetIALAttr("vscroll", vscroll)
ialTokens = append(ialTokens, []byte(" vscroll=\""+vscroll+"\"")...)
}

if breadcrumb := util.DomAttrValue(n, "breadcrumb"); "" != breadcrumb {
node.SetIALAttr("breadcrumb", breadcrumb)
ialTokens = append(ialTokens, []byte(" breadcrumb=\""+breadcrumb+"\"")...)
Expand Down

0 comments on commit 68ce696

Please sign in to comment.