mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Hide network img icon in the inbox https://github.com/siyuan-note/siyuan/issues/14084
This commit is contained in:
parent
4374859e04
commit
c43da2fcaa
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue