Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 28, 2024
2 parents 1d0ccd1 + 9d334fc commit 4873df8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kernel/model/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ func renderOutline(heading *ast.Node, luteEngine *lute.Lute) (ret string) {
buf.WriteString(dom)
return ast.WalkSkipChildren
case ast.NodeImage:
// 标题后直接跟图片时图片的提示文本不再渲染到大纲中 https://github.com/siyuan-note/siyuan/issues/6278
title := n.ChildByType(ast.NodeLinkTitle)
title.Unlink()
if title := n.ChildByType(ast.NodeLinkTitle); nil != title {
// 标题后直接跟图片时图片的提示文本不再渲染到大纲中 https://github.com/siyuan-note/siyuan/issues/6278
title.Unlink()
}
dom := luteEngine.RenderNodeBlockDOM(n)
buf.WriteString(dom)
return ast.WalkSkipChildren
Expand Down

0 comments on commit 4873df8

Please sign in to comment.