mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
🎨 Improve text https://github.com/siyuan-note/siyuan/pull/15877
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
aa250f2da9
commit
e38635c1f1
3 changed files with 6 additions and 6 deletions
|
|
@ -302,7 +302,7 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
|
|||
} else if "h" == sqlBlock.Type {
|
||||
h := treenode.GetNodeInTree(subTree, sqlBlock.ID)
|
||||
var hChildren []*ast.Node
|
||||
|
||||
|
||||
// 从嵌入块的 IAL 属性中解析 custom-heading-mode,默认值为 0
|
||||
blockHeadingMode := 0 // 默认值
|
||||
if customHeadingMode := n.IALAttr("custom-heading-mode"); "" != customHeadingMode {
|
||||
|
|
@ -310,9 +310,9 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
|
|||
blockHeadingMode = mode
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 根据 blockHeadingMode 处理标题块的显示
|
||||
// blockHeadingMode: 0=显示标题与下方的块,1=仅显示标题,2=仅显示标题下方的块(默认)
|
||||
// blockHeadingMode: 0=显示标题与下方的块,1=仅显示标题,2=仅显示标题下方的块
|
||||
if 1 == blockHeadingMode {
|
||||
// 仅显示标题
|
||||
hChildren = append(hChildren, h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue