mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 14:58:49 +01:00
🎨 Improve export preview https://github.com/siyuan-note/siyuan/issues/13857
This commit is contained in:
parent
9885e6eb9b
commit
0658c85b2e
3 changed files with 4 additions and 4 deletions
|
|
@ -576,11 +576,11 @@ func Preview(id string) (retStdHTML string) {
|
|||
tree, _ := LoadTreeByBlockID(id)
|
||||
tree = exportTree(tree, false, false, true,
|
||||
blockRefMode, Conf.Export.BlockEmbedMode, Conf.Export.FileAnnotationRefMode,
|
||||
Conf.Export.TagOpenMarker, Conf.Export.TagCloseMarker,
|
||||
"#", "#", // 这里固定使用 # 包裹标签,否则无法正确解析标签 https://github.com/siyuan-note/siyuan/issues/13857
|
||||
Conf.Export.BlockRefTextLeft, Conf.Export.BlockRefTextRight,
|
||||
Conf.Export.AddTitle, true, true, &map[string]*parse.Tree{})
|
||||
luteEngine := NewLute()
|
||||
EnableLuteInlineSyntax(luteEngine)
|
||||
enableLuteInlineSyntax(luteEngine)
|
||||
luteEngine.SetFootnotes(true)
|
||||
addBlockIALNodes(tree, false)
|
||||
md := treenode.FormatNode(tree.Root, luteEngine)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue