mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 11:50:04 -06:00
🎨 Improve callout block https://github.com/siyuan-note/siyuan/issues/16607
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -181,6 +181,15 @@ func nodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATi
|
||||
buf.WriteByte(' ')
|
||||
lastSpace = true
|
||||
}
|
||||
if ast.NodeCallout == n.Type {
|
||||
buf.WriteString(n.CalloutType + " ")
|
||||
if "" != n.CalloutIcon && 0 == n.CalloutIconType {
|
||||
buf.WriteString(n.CalloutIcon + " ")
|
||||
}
|
||||
if "" != n.CalloutTitle {
|
||||
buf.WriteString(n.CalloutTitle)
|
||||
}
|
||||
}
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user