mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🐛 Parsing YFM incorrectly when exporting widget block attribute data-export-md Fix https://github.com/siyuan-note/siyuan/issues/7824
This commit is contained in:
parent
ee7ab26fcd
commit
1d5aaad43f
1 changed files with 1 additions and 1 deletions
|
|
@ -1797,7 +1797,7 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
|
||||||
if "" != exportMdVal {
|
if "" != exportMdVal {
|
||||||
luteEngine0 := util.NewLute()
|
luteEngine0 := util.NewLute()
|
||||||
luteEngine0.SetYamlFrontMatter(true) // 挂件导出属性 `data-export-md` 支持 YFM https://github.com/siyuan-note/siyuan/issues/7752
|
luteEngine0.SetYamlFrontMatter(true) // 挂件导出属性 `data-export-md` 支持 YFM https://github.com/siyuan-note/siyuan/issues/7752
|
||||||
exportMdTree := parse.Parse("", []byte(exportMdVal), luteEngine.ParseOptions)
|
exportMdTree := parse.Parse("", []byte(exportMdVal), luteEngine0.ParseOptions)
|
||||||
var insertNodes []*ast.Node
|
var insertNodes []*ast.Node
|
||||||
for c := exportMdTree.Root.FirstChild; nil != c; c = c.Next {
|
for c := exportMdTree.Root.FirstChild; nil != c; c = c.Next {
|
||||||
if ast.NodeKramdownBlockIAL != c.Type {
|
if ast.NodeKramdownBlockIAL != c.Type {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue