🎨 https://github.com/siyuan-note/siyuan/issues/17127
Some checks failed
Release Docker Image / build (push) Has been cancelled

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-04 11:55:30 +08:00
parent d68bd5a793
commit d03ebdec82
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -633,6 +633,7 @@ func loadInstalledReadme(installPath, basePath string, readme LocaleStrings) (re
}
func renderREADME(repoURL string, mdData []byte) (ret string, err error) {
mdData = bytes.TrimPrefix(mdData, []byte("\xef\xbb\xbf"))
luteEngine := lute.New()
luteEngine.SetSoftBreak2HardBreak(false)
luteEngine.SetCodeSyntaxHighlight(false)
@ -644,6 +645,7 @@ func renderREADME(repoURL string, mdData []byte) (ret string, err error) {
}
func renderLocalREADME(basePath string, mdData []byte) (ret string, err error) {
mdData = bytes.TrimPrefix(mdData, []byte("\xef\xbb\xbf"))
luteEngine := lute.New()
luteEngine.SetSoftBreak2HardBreak(false)
luteEngine.SetCodeSyntaxHighlight(false)