]> source.dussan.org Git - gitea.git/commit
Rework special link parsing in the post-processing of markup (#3354)
authorMorgan Bazalgette <git@howl.moe>
Tue, 27 Feb 2018 07:09:18 +0000 (08:09 +0100)
committerLauris BH <lauris@nix.lv>
Tue, 27 Feb 2018 07:09:18 +0000 (09:09 +0200)
commit535445c32ee730988033728b3b91c4d6f456e08c
tree34cd5b9807faf01018f47f74a34ed5b584df5158
parent769ab1e4240f820efdb231832cb7957cb4902807
Rework special link parsing in the post-processing of markup (#3354)

* Get rid of autolink

* autolink in markdown

* Replace email addresses with mailto links

* better handling of links

* Remove autolink.js from footer

* Refactor entire html.go

* fix some bugs

* Make tests green, move what we can to html_internal_test, various other changes to processor logic

* Make markdown tests work again

This is just a description to allow me to force push in order to restart
the drone build.

* Fix failing markdown tests in routers/api/v1/misc

* Add license headers, log errors, future-proof <body>

* fix formatting
12 files changed:
modules/markup/html.go
modules/markup/html_internal_test.go [new file with mode: 0644]
modules/markup/html_test.go
modules/markup/markdown/markdown.go
modules/markup/markdown/markdown_test.go
modules/markup/markup.go
modules/templates/helper.go
public/js/index.js
public/vendor/plugins/autolink/LICENSE [deleted file]
public/vendor/plugins/autolink/autolink.js [deleted file]
routers/api/v1/misc/markdown_test.go
templates/base/footer.tmpl