🎨 Improve images render in the marketplace package https://github.com/siyuan-note/bazaar/issues/1119
This commit is contained in:
parent
7572db4012
commit
2cf8a8191a
1 changed files with 1 additions and 1 deletions
|
@ -497,7 +497,7 @@ func renderREADME(repoURL string, mdData []byte) (ret string, err error) {
|
||||||
luteEngine := lute.New()
|
luteEngine := lute.New()
|
||||||
luteEngine.SetSoftBreak2HardBreak(false)
|
luteEngine.SetSoftBreak2HardBreak(false)
|
||||||
luteEngine.SetCodeSyntaxHighlight(false)
|
luteEngine.SetCodeSyntaxHighlight(false)
|
||||||
linkBase := repoURL + "/blob/main/"
|
linkBase := "https://cdn.jsdelivr.net/gh/" + strings.TrimPrefix(repoURL, "https://github.com/")
|
||||||
luteEngine.SetLinkBase(linkBase)
|
luteEngine.SetLinkBase(linkBase)
|
||||||
ret = luteEngine.Md2HTML(string(mdData))
|
ret = luteEngine.Md2HTML(string(mdData))
|
||||||
doc, err := goquery.NewDocumentFromReader(strings.NewReader(ret))
|
doc, err := goquery.NewDocumentFromReader(strings.NewReader(ret))
|
||||||
|
|
Loading…
Add table
Reference in a new issue