mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve embedding block exports (#16205)
fix https://github.com/siyuan-note/siyuan/issues/16200
This commit is contained in:
parent
c858b517b9
commit
45381d2575
1 changed files with 2 additions and 2 deletions
|
|
@ -303,8 +303,8 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
|
||||||
h := treenode.GetNodeInTree(subTree, sqlBlock.ID)
|
h := treenode.GetNodeInTree(subTree, sqlBlock.ID)
|
||||||
var hChildren []*ast.Node
|
var hChildren []*ast.Node
|
||||||
|
|
||||||
// 从嵌入块的 IAL 属性中解析 custom-heading-mode,默认值为 0
|
// 从嵌入块的 IAL 属性中解析 custom-heading-mode,使用全局配置作为默认值
|
||||||
blockHeadingMode := 0 // 默认值
|
blockHeadingMode := Conf.Editor.HeadingEmbedMode
|
||||||
if customHeadingMode := n.IALAttr("custom-heading-mode"); "" != customHeadingMode {
|
if customHeadingMode := n.IALAttr("custom-heading-mode"); "" != customHeadingMode {
|
||||||
if mode, err := strconv.Atoi(customHeadingMode); nil == err && (mode == 0 || mode == 1 || mode == 2) {
|
if mode, err := strconv.Atoi(customHeadingMode); nil == err && (mode == 0 || mode == 1 || mode == 2) {
|
||||||
blockHeadingMode = mode
|
blockHeadingMode = mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue