Browse Source

:art: Text starting with 4 spaces are not parsed into code blocks when clipping https://github.com/siyuan-note/siyuan/issues/10588

Daniel 1 year ago
parent
commit
14587701ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/api/extension.go

+ 1 - 1
kernel/api/extension.go

@@ -121,7 +121,7 @@ func extensionCopy(c *gin.Context) {
 		uploaded[oName] = "assets/" + fName
 		uploaded[oName] = "assets/" + fName
 	}
 	}
 
 
-	luteEngine := lute.New()
+	luteEngine := util.NewStdLute()
 	md := luteEngine.HTML2Md(dom)
 	md := luteEngine.HTML2Md(dom)
 	md = strings.TrimSpace(md)
 	md = strings.TrimSpace(md)