Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-05-13 23:41:58 +08:00
commit c7b973d656

View file

@ -545,6 +545,7 @@ func Preview(id string) (retStdHTML string, retOutline []*Path) {
Conf.Export.AddTitle)
luteEngine := NewLute()
luteEngine.SetFootnotes(true)
addBlockIALNodes(tree, false)
md := treenode.FormatNode(tree.Root, luteEngine)
tree = parse.Parse("", []byte(md), luteEngine.ParseOptions)
retStdHTML = luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)