repo: ensure we render massaged html when in fallback mode

This commit is contained in:
mappu 2024-03-19 19:08:12 +13:00
parent 0d806965ab
commit c3b3e19a42

View File

@ -72,7 +72,7 @@ func (this *Application) Repopage(w http.ResponseWriter, r *http.Request, repoNa
// sufficient to make it work again // sufficient to make it work again
// Use our own one instead as a fallback // Use our own one instead as a fallback
buff := bytes.Buffer{} buff := bytes.Buffer{}
err = goldmark.Convert(readme, &buff) err = goldmark.Convert([]byte(strings.Join(lines, "\n")), &buff)
if err != nil { if err != nil {
// Built-in markdown renderer didn't work either // Built-in markdown renderer didn't work either