Found by @EdMcBane in https://github.com/jekyll/jekyll/pull/3435 The strange regexp we were doing to replace the <pre><code></pre></code> bits in the Pygments output were wreaking havoc on Rouge output because Rouge uses <pre>'s to wrap line numbers. To be consistent, the output from render_* should *not* include the wrapping <div> and <pre> tags. It should just be what was inside. We can then wrap it in our own custom tags without using any regular expressions, as God intended. Death to regular expressions and HTML manipulation! |
||
---|---|---|
.. | ||
jekyll | ||
site_template | ||
jekyll.rb |