This commit is contained in:
Daniel 2025-02-09 12:20:18 +08:00
parent 9b2f439675
commit 5fca28ca81
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 34 additions and 3 deletions

View file

@ -410,7 +410,22 @@ func exportMdContent(c *gin.Context) {
return
}
hPath, content := model.ExportMarkdownContent(id)
refMode := model.Conf.Export.BlockRefMode
if nil != arg["refMode"] {
refMode = arg["refMode"].(int)
}
embedMode := model.Conf.Export.BlockEmbedMode
if nil != arg["embedMode"] {
embedMode = arg["embedMode"].(int)
}
yfm := true
if nil != arg["yfm"] {
yfm = arg["yfm"].(bool)
}
hPath, content := model.ExportMarkdownContent(id, refMode, embedMode, yfm)
ret.Data = map[string]interface{}{
"hPath": hPath,
"content": content,