mirror of
https://github.com/go-gitea/gitea
synced 2024-11-19 08:22:44 +01:00
Fix syntax highlighting for markdown code blocks on issue description/comment save
This commit is contained in:
parent
32efc3ec0a
commit
0d41827f23
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue