A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang. (PERSONAL FORK)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:art: Improve embedding block exports (#16205)

fix https://github.com/siyuan-note/siyuan/issues/16200

authored by

Jeffrey Chen and committed by
GitHub
45381d25 c858b517

+2 -2
+2 -2
kernel/model/render.go
··· 303 303 h := treenode.GetNodeInTree(subTree, sqlBlock.ID) 304 304 var hChildren []*ast.Node 305 305 306 - // 从嵌入块的 IAL 属性中解析 custom-heading-mode,默认值为 0 307 - blockHeadingMode := 0 // 默认值 306 + // 从嵌入块的 IAL 属性中解析 custom-heading-mode,使用全局配置作为默认值 307 + blockHeadingMode := Conf.Editor.HeadingEmbedMode 308 308 if customHeadingMode := n.IALAttr("custom-heading-mode"); "" != customHeadingMode { 309 309 if mode, err := strconv.Atoi(customHeadingMode); nil == err && (mode == 0 || mode == 1 || mode == 2) { 310 310 blockHeadingMode = mode