mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Update Pygments to latest upstream version.
In HTML, the line break immediately following a start tag is ignored (see: https://www.w3.org/TR/html4/appendix/notes.html#h-B.3.1). An extra span tag has been introduced in the upstream Pygments HtmlFormatter in order to preserve the first new line. The Bugdown Tests as well as our fenced_code.js frontend markdown processor have been updated to reflect this new behavior.
This commit is contained in:
@@ -35,7 +35,7 @@ function wrap_code(code) {
|
||||
while (code.length > 2 && code.substr(code.length - 2) === '\n\n') {
|
||||
code = code.substring(0, code.length - 1);
|
||||
}
|
||||
return '<div class="codehilite"><pre>' + escape_func(code) + '</pre></div>\n';
|
||||
return '<div class="codehilite"><pre><span></span>' + escape_func(code) + '</pre></div>\n';
|
||||
}
|
||||
|
||||
function wrap_quote(text) {
|
||||
|
||||
Reference in New Issue
Block a user