mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +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 := NewLute()
|
||||||
luteEngine.SetFootnotes(true)
|
luteEngine.SetFootnotes(true)
|
||||||
tree := parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
tree := parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
||||||
|
luteEngine.RenderOptions.ProtyleMarkNetImg = false
|
||||||
content := luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)
|
content := luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)
|
||||||
ret["shorthandContent"] = content
|
ret["shorthandContent"] = content
|
||||||
return
|
return
|
||||||
|
|
@ -521,6 +522,7 @@ func GetCloudShorthands(page int) (result map[string]interface{}, err error) {
|
||||||
md := shorthand["shorthandContent"].(string)
|
md := shorthand["shorthandContent"].(string)
|
||||||
shorthand["shorthandMd"] = md
|
shorthand["shorthandMd"] = md
|
||||||
tree := parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
tree := parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
||||||
|
luteEngine.RenderOptions.ProtyleMarkNetImg = false
|
||||||
content := luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)
|
content := luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)
|
||||||
shorthand["shorthandContent"] = content
|
shorthand["shorthandContent"] = content
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue