mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 13:20:16 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/17127
Some checks failed
Release Docker Image / build (push) Has been cancelled
Some checks failed
Release Docker Image / build (push) Has been cancelled
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
d68bd5a793
commit
d03ebdec82
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue