Browse Source

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

pull/2542/head
Florian Kaiser 9 years ago
parent
commit
0d41827f23
  1. 3
      public/js/gogs.js

3
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);
});
}
});
});

Loading…
Cancel
Save