🎨 Fill style variables with actual values when exporting style elements https://github.com/siyuan-note/siyuan/issues/15026

https://github.com/siyuan-note/siyuan/issues/14032
This commit is contained in:
Daniel 2025-06-14 09:24:16 +08:00
parent 249dbd2cc1
commit 11fdd64973
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 16 additions and 7 deletions

View file

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