🐛 The hyperlink in the marketplace package README fails to jump to the browser to open Fix https://github.com/siyuan-note/siyuan/issues/8452

This commit is contained in:
Daniel 2023-06-04 20:50:29 +08:00
parent 228452b8e2
commit 82fa9f58b2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -524,8 +524,7 @@ func renderREADME(repoURL string, mdData []byte) (ret string, err error) {
}
doc.Find("a").Each(func(i int, selection *goquery.Selection) {
href, ok := selection.Attr("href")
if ok {
if href, ok := selection.Attr("href"); ok {
if util.IsRelativePath(href) {
selection.SetAttr("href", linkBase+href)
}