diff options
author | Morgan Bazalgette <git@howl.moe> | 2018-02-27 08:09:18 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-02-27 09:09:18 +0200 |
commit | 535445c32ee730988033728b3b91c4d6f456e08c (patch) | |
tree | 34cd5b9807faf01018f47f74a34ed5b584df5158 /public/js | |
parent | 769ab1e4240f820efdb231832cb7957cb4902807 (diff) | |
download | gitea-535445c32ee730988033728b3b91c4d6f456e08c.tar.gz gitea-535445c32ee730988033728b3b91c4d6f456e08c.zip |
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
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js index 137e50f9ce..5d3d2a013d 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -771,7 +771,6 @@ function initWikiForm() { function (data) { preview.innerHTML = '<div class="markdown">' + data + '</div>'; emojify.run($('.editor-preview')[0]); - $('.editor-preview').autolink(); } ); }, 0); @@ -1549,7 +1548,6 @@ $(document).ready(function () { node.append('<a class="anchor" href="#' + name + '"><span class="octicon octicon-link"></span></a>'); }); }); - $('.markdown').autolink(); $('.issue-checkbox').click(function() { var numChecked = $('.issue-checkbox').children('input:checked').length; |