repo: ensure we render massaged html when in fallback mode
This commit is contained in:
parent
0d806965ab
commit
c3b3e19a42
@ -72,7 +72,7 @@ func (this *Application) Repopage(w http.ResponseWriter, r *http.Request, repoNa
|
||||
// sufficient to make it work again
|
||||
// Use our own one instead as a fallback
|
||||
buff := bytes.Buffer{}
|
||||
err = goldmark.Convert(readme, &buff)
|
||||
err = goldmark.Convert([]byte(strings.Join(lines, "\n")), &buff)
|
||||
|
||||
if err != nil {
|
||||
// Built-in markdown renderer didn't work either
|
||||
|
Loading…
Reference in New Issue
Block a user