🎨 Export preview mode supports focus use https://github.com/siyuan-note/siyuan/issues/15340

This commit is contained in:
Daniel 2025-07-28 22:06:09 +08:00
parent 81644059ac
commit 49d233d92a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 12 additions and 6 deletions

View file

@ -431,7 +431,12 @@ func exportMdContent(c *gin.Context) {
fillCSSVar = arg["fillCSSVar"].(bool)
}
hPath, content := model.ExportMarkdownContent(id, refMode, embedMode, yfm, fillCSSVar)
adjustHeadingLevel := false
if nil != arg["adjustHeadingLevel"] {
adjustHeadingLevel = arg["adjustHeadingLevel"].(bool)
}
hPath, content := model.ExportMarkdownContent(id, refMode, embedMode, yfm, fillCSSVar, adjustHeadingLevel)
ret.Data = map[string]interface{}{
"hPath": hPath,
"content": content,