mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🧑💻 Add parameter imgTag for kernel API exportMdContent and copyStdMarkdown https://github.com/siyuan-note/siyuan/issues/15454
This commit is contained in:
parent
c2c927ecc2
commit
99fca2f716
5 changed files with 24 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue