Skip to content

Commit

Permalink
Take NormalEOF back
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Apr 18, 2021
1 parent 7e7a161 commit 1eeb587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/markup/markdown/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"code.gitea.io/gitea/modules/markup"
"code.gitea.io/gitea/modules/markup/common"
"code.gitea.io/gitea/modules/setting"
giteautil "code.gitea.io/gitea/modules/util"

chromahtml "github.com/alecthomas/chroma/formatters/html"
"github.com/yuin/goldmark"
Expand Down Expand Up @@ -191,7 +192,7 @@ func actualRender(ctx *markup.RenderContext, input io.Reader, output io.Writer)
log.Error("Unable to ReadAll: %v", err)
return
}
if err := converter.Convert(buf, lw, parser.WithContext(pc)); err != nil {
if err := converter.Convert(giteautil.NormalizeEOL(buf), lw, parser.WithContext(pc)); err != nil {
log.Error("Unable to render: %v", err)
_ = lw.CloseWithError(err)
return
Expand Down

0 comments on commit 1eeb587

Please sign in to comment.