mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🐛 Copying blocks without copying attributes https://github.com/siyuan-note/siyuan/issues/15268
This commit is contained in:
parent
dda4634126
commit
62f0f05cef
4 changed files with 7 additions and 6 deletions
|
|
@ -63,6 +63,7 @@ func html2BlockDOM(c *gin.Context) {
|
|||
dom := arg["dom"].(string)
|
||||
luteEngine := util.NewLute()
|
||||
luteEngine.SetHTMLTag2TextMark(true)
|
||||
luteEngine.SetHTML2MarkdownAttrs([]string{"name", "alias", "memo", "bookmark", "custom-*"})
|
||||
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
|
||||
if err != nil {
|
||||
ret.Data = "Failed to convert"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue