mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 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:
parent
249dbd2cc1
commit
11fdd64973
2 changed files with 16 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue