Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00

Fix syntax highlighting for markdown code blocks on issue description/comment save

This commit is contained in:
Florian Kaiser 2016-02-01 22:48:04 +00:00
parent 32efc3ec0a
commit 0d41827f23

View file

@ -385,6 +385,9 @@ function initRepository() {
} else { } else {
$render_content.html(data.content); $render_content.html(data.content);
emojify.run($render_content[0]); emojify.run($render_content[0]);
$('pre code', $render_content[0]).each(function(i, block) {
hljs.highlightBlock(block);
});
} }
}); });
}); });