mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
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
This commit is contained in:
commit
a93af59b36
@ -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);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user