]> source.dussan.org Git - gitea.git/commit
Convert EOL to UNIX-style to render MD properly (#8925)
authorguillep2k <18600385+guillep2k@users.noreply.github.com>
Wed, 13 Nov 2019 02:27:11 +0000 (23:27 -0300)
committerAntoine GIRARD <sapk@users.noreply.github.com>
Wed, 13 Nov 2019 02:27:11 +0000 (03:27 +0100)
commit7b97e045557788efee6803261cf612eaf975c6be
tree338be48cbd983219854facc0578cc9e485a21d18
parentcda8de2004f81169355fea24762d4f11c9e88560
Convert EOL to UNIX-style to render MD properly (#8925)

* Convert EOL to UNIX-style to render MD properly

* Update modules/markup/markdown/markdown.go

Co-Authored-By: zeripath <art27@cantab.net>
* Fix lint optimization

* Check for empty content before conversion

* Update modules/util/util.go

Co-Authored-By: zeripath <art27@cantab.net>
* Improved checks and tests

* Add paragraph render test

* Improve speed even more, improve tests

* Small improvement by @gary-kim

* Fix test for DOS

* More improvements

* Restart CI
modules/markup/markdown/markdown.go
modules/markup/markdown/markdown_test.go
modules/util/util.go
modules/util/util_test.go