mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-08 03:37:02 +03:00
Fix Appveyor Windows build and GitInfo path issue on Windows
This commit is contained in:
parent
6e0f326b9d
commit
09a0af94f5
6 changed files with 62 additions and 6 deletions
|
@ -112,7 +112,7 @@ func Highlight(code, lang, optsStr string) string {
|
|||
return code
|
||||
}
|
||||
|
||||
str := out.String()
|
||||
str := string(normalizeExternalHelperLineFeeds([]byte(out.String())))
|
||||
|
||||
// inject code tag into Pygments output
|
||||
if lang != "" && strings.Contains(str, "<pre>") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue