Skip to content

Commit

Permalink
🎨 Code blocks support setting height 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 75239c6 commit 22c0e7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protyle.go
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,11 @@ 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 22c0e7c

Please sign in to comment.