forked from forgejo/forgejo
Markdown rendering overhaul (#186)
* Markdown rendering overhaul Cleaned up and squashed commits into single one. Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com> * Fix markdown API, add markdown module and API tests, improve code coverage Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
This commit is contained in:
parent
5cc275b1de
commit
dc8248f8a4
13 changed files with 1374 additions and 187 deletions
|
@ -613,6 +613,7 @@ function initWikiForm() {
|
|||
function (data) {
|
||||
preview.innerHTML = '<div class="markdown">' + data + '</div>';
|
||||
emojify.run($('.editor-preview')[0]);
|
||||
$('.editor-preview').autolink();
|
||||
}
|
||||
);
|
||||
}, 0);
|
||||
|
@ -1388,6 +1389,7 @@ $(document).ready(function () {
|
|||
node.append('<a class="anchor" href="#' + name + '"><span class="octicon octicon-link"></span></a>');
|
||||
});
|
||||
});
|
||||
$('.markdown').autolink();
|
||||
|
||||
buttonsClickOnEnter();
|
||||
searchUsers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue