mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Hide network img icon in the inbox https://github.com/siyuan-note/siyuan/issues/14084
This commit is contained in:
@@ -468,6 +468,7 @@ func GetCloudShorthand(id string) (ret map[string]interface{}, err error) {
|
||||
luteEngine := NewLute()
|
||||
luteEngine.SetFootnotes(true)
|
||||
tree := parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
||||
luteEngine.RenderOptions.ProtyleMarkNetImg = false
|
||||
content := luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)
|
||||
ret["shorthandContent"] = content
|
||||
return
|
||||
@@ -521,6 +522,7 @@ func GetCloudShorthands(page int) (result map[string]interface{}, err error) {
|
||||
md := shorthand["shorthandContent"].(string)
|
||||
shorthand["shorthandMd"] = md
|
||||
tree := parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
||||
luteEngine.RenderOptions.ProtyleMarkNetImg = false
|
||||
content := luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)
|
||||
shorthand["shorthandContent"] = content
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user