mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 The browser extension supports CSDN formula https://github.com/siyuan-note/siyuan/issues/5624
This commit is contained in:
parent
dfc8d39a68
commit
d3754bd630
5 changed files with 34 additions and 9 deletions
|
|
@ -677,7 +677,13 @@ func createDocWithMd(c *gin.Context) {
|
|||
hPath = "/" + hPath
|
||||
}
|
||||
|
||||
id, err := model.CreateWithMarkdown(notebook, hPath, markdown, parentID, id)
|
||||
withMath := false
|
||||
withMathArg := arg["withMath"]
|
||||
if nil != withMathArg {
|
||||
withMath = withMathArg.(bool)
|
||||
}
|
||||
|
||||
id, err := model.CreateWithMarkdown(notebook, hPath, markdown, parentID, id, withMath)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue