This commit is contained in:
Daniel 2024-05-13 23:39:16 +08:00
parent eb909e5b8e
commit e35729c3a8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

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)