diff options
author | Unknwon <u@gogs.io> | 2016-02-01 18:12:17 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-01 18:12:17 -0500 |
commit | a93af59b363912c00cfbfc3a8af5edb7396036de (patch) | |
tree | 6a18168cee26a7046616e3008818c66439c9c032 | |
parent | 32efc3ec0ae7228daca6bb5cec8c1e0be068ab43 (diff) | |
parent | 0d41827f23c04678f1ff7db236d5150cc8ee539d (diff) | |
download | gitea-a93af59b363912c00cfbfc3a8af5edb7396036de.tar.gz gitea-a93af59b363912c00cfbfc3a8af5edb7396036de.zip |
Merge pull request #2542 from fnkr/fix-markdown-code-blocks-issue-comment-save
Fix syntax highlighting for markdown code blocks on issue description/comment save
-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 71f4859c3c..3459658585 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -385,6 +385,9 @@ function initRepository() { } else { $render_content.html(data.content); emojify.run($render_content[0]); + $('pre code', $render_content[0]).each(function(i, block) { + hljs.highlightBlock(block); + }); } }); }); |