mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-04 09:10:49 -05:00
🧑💻 Add parameter imgTag for kernel API exportMdContent and copyStdMarkdown https://github.com/siyuan-note/siyuan/issues/15454
This commit is contained in:
@@ -437,7 +437,12 @@ func exportMdContent(c *gin.Context) {
|
||||
adjustHeadingLevel = arg["adjustHeadingLevel"].(bool)
|
||||
}
|
||||
|
||||
hPath, content := model.ExportMarkdownContent(id, refMode, embedMode, yfm, fillCSSVar, adjustHeadingLevel)
|
||||
imgTag := false
|
||||
if nil != arg["imgTag"] {
|
||||
imgTag = arg["imgTag"].(bool)
|
||||
}
|
||||
|
||||
hPath, content := model.ExportMarkdownContent(id, refMode, embedMode, yfm, fillCSSVar, adjustHeadingLevel, imgTag)
|
||||
ret.Data = map[string]interface{}{
|
||||
"hPath": hPath,
|
||||
"content": content,
|
||||
|
||||
+6
-1
@@ -59,7 +59,12 @@ func copyStdMarkdown(c *gin.Context) {
|
||||
adjustHeadingLevel = arg["adjustHeadingLevel"].(bool)
|
||||
}
|
||||
|
||||
ret.Data = model.ExportStdMarkdown(id, assetsDestSpace2Underscore, fillCSSVar, adjustHeadingLevel)
|
||||
imgTag := false
|
||||
if nil != arg["imgTag"] {
|
||||
imgTag = arg["imgTag"].(bool)
|
||||
}
|
||||
|
||||
ret.Data = model.ExportStdMarkdown(id, assetsDestSpace2Underscore, fillCSSVar, adjustHeadingLevel, imgTag)
|
||||
}
|
||||
|
||||
func html2BlockDOM(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user