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:
umkay
2016-09-12 11:50:10 -07:00
committed by Tim Abbott
parent 9bccd10582
commit 82d03d603a
4 changed files with 12 additions and 11 deletions

View File

@@ -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) {