diff options
author | Unknwon <u@gogs.io> | 2016-02-01 15:31:05 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-01 15:31:05 -0500 |
commit | 857b3404986eff2881cec75748db8d45707f64b8 (patch) | |
tree | 09971bc14792e832e1abbe279e57d1493bdba488 /public | |
parent | 3abad75a1bb4b2c207cb5c0ce09295369d65bf9a (diff) | |
parent | 3e0a27157c8a87d8da166530f290260264185b4e (diff) | |
download | gitea-857b3404986eff2881cec75748db8d45707f64b8.tar.gz gitea-857b3404986eff2881cec75748db8d45707f64b8.zip |
Merge pull request #2538 from fnkr/issue-markdown-code-block-highlighted
Make highlighted markdown code blocks work on issue pages
Diffstat (limited to 'public')
-rw-r--r-- | public/js/gogs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index f979df0762..6c00d27764 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -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); + }); } ); }); |