🎨 Improve embedding block exports (#16205)

fix https://github.com/siyuan-note/siyuan/issues/16200
This commit is contained in:
Jeffrey Chen 2025-10-26 18:45:14 +08:00 committed by GitHub
parent c858b517b9
commit 45381d2575
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,8 +303,8 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
h := treenode.GetNodeInTree(subTree, sqlBlock.ID)
var hChildren []*ast.Node
// 从嵌入块的 IAL 属性中解析 custom-heading-mode默认值为 0
blockHeadingMode := 0 // 默认值
// 从嵌入块的 IAL 属性中解析 custom-heading-mode使用全局配置作为默认值
blockHeadingMode := Conf.Editor.HeadingEmbedMode
if customHeadingMode := n.IALAttr("custom-heading-mode"); "" != customHeadingMode {
if mode, err := strconv.Atoi(customHeadingMode); nil == err && (mode == 0 || mode == 1 || mode == 2) {
blockHeadingMode = mode