This commit is contained in:
Daniel 2024-11-12 10:12:32 +08:00
parent 542f287d88
commit 255afcc9ad
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 17 additions and 2 deletions

View file

@ -742,8 +742,13 @@ func createDocWithMd(c *gin.Context) {
if nil != withMathArg {
withMath = withMathArg.(bool)
}
clippingHref := ""
clippingHrefArg := arg["clippingHref"]
if nil != clippingHrefArg {
clippingHref = clippingHrefArg.(string)
}
id, err := model.CreateWithMarkdown(tags, notebook, hPath, markdown, parentID, id, withMath)
id, err := model.CreateWithMarkdown(tags, notebook, hPath, markdown, parentID, id, withMath, clippingHref)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()