mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
1413457ab6
commit
f27684b26f
2 changed files with 2 additions and 2 deletions
|
|
@ -733,7 +733,7 @@ func exportPreview(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
stdHTML := model.Preview(id, fillCSSVar)
|
||||
stdHTML := model.ExportPreview(id, fillCSSVar)
|
||||
ret.Data = map[string]interface{}{
|
||||
"html": stdHTML,
|
||||
"fillCSSVar": fillCSSVar,
|
||||
|
|
|
|||
|
|
@ -586,7 +586,7 @@ func ExportResources(resourcePaths []string, mainName string) (exportFilePath st
|
|||
return
|
||||
}
|
||||
|
||||
func Preview(id string, fillCSSVar bool) (retStdHTML string) {
|
||||
func ExportPreview(id string, fillCSSVar bool) (retStdHTML string) {
|
||||
blockRefMode := Conf.Export.BlockRefMode
|
||||
bt := treenode.GetBlockTree(id)
|
||||
if nil == bt {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue