🐛 The hyperlink in the changelog fails to jump to the browser to open https://github.com/siyuan-note/siyuan/issues/8458

This commit is contained in:
Daniel 2023-06-06 11:19:24 +08:00
parent 8c9d947ff2
commit b24c06fbce
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 45 additions and 35 deletions

View file

@ -66,10 +66,11 @@ func getChangelog(c *gin.Context) {
model.Conf.ShowChangelog = false
luteEngine := lute.New()
htmlContent := luteEngine.Markdown("", contentData)
htmlContent := luteEngine.MarkdownStr("", string(contentData))
htmlContent = util.LinkTarget(htmlContent, "")
data["show"] = true
data["html"] = gulu.Str.FromBytes(htmlContent)
data["html"] = htmlContent
ret.Data = data
}