mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 14:12:37 +02:00
Make highlighted markdown code blocks work on issue pages
This commit is contained in:
1 parent
3abad75a1b
commit
3e0a27157c
2 files changed
+8
No files matched your search
@@ -18,6 +18,9 @@ function initCommentPreviewTab($form) {
|
||||
var $preview_tab = $form.find('.tab.segment[data-tab="' + $tab_menu.data('preview') + '"]');
|
||||
$preview_tab.html(data);
|
||||
emojify.run($preview_tab[0]);
|
||||
$('pre code', $preview_tab[0]).each(function(i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user