mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 Improve callout block https://github.com/siyuan-note/siyuan/issues/16607
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
dc08f63c19
commit
184ba32aa4
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue