mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
🎨 Improve callout block https://github.com/siyuan-note/siyuan/issues/16607
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
6f2ace0c28
commit
c07efea8de
18 changed files with 33 additions and 33 deletions
|
|
@ -60,7 +60,7 @@ func HTML2Markdown(htmlStr string, luteEngine *lute.Lute) (markdown string, with
|
|||
tree, withMath := HTML2Tree(htmlStr, luteEngine)
|
||||
|
||||
var formatted []byte
|
||||
renderer := render.NewFormatRenderer(tree, luteEngine.RenderOptions)
|
||||
renderer := render.NewFormatRenderer(tree, luteEngine.RenderOptions, luteEngine.ParseOptions)
|
||||
for nodeType, rendererFunc := range luteEngine.HTML2MdRendererFuncs {
|
||||
renderer.ExtRendererFuncs[nodeType] = rendererFunc
|
||||
}
|
||||
|
|
@ -419,7 +419,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
util.PushEndlessProgress(Conf.language(73) + " " + fmt.Sprintf(Conf.language(70), tree.Root.IALAttr("title")))
|
||||
syPath := filepath.Join(unzipRootPath, tree.Path)
|
||||
treenode.UpgradeSpec(tree)
|
||||
renderer := render.NewJSONRenderer(tree, luteEngine.RenderOptions)
|
||||
renderer := render.NewJSONRenderer(tree, luteEngine.RenderOptions, luteEngine.ParseOptions)
|
||||
data := renderer.Render()
|
||||
|
||||
if !util.UseSingleLineSave {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue