Closed bootstraponline closed 12 years ago
Extra spacing is added.
https://github.com/github/gollum/issues/560#issuecomment-9812284
require 'rubygems' require 'redcarpet' require 'redcarpet/render_man' renderer = Redcarpet::Render::HTML.new(render_options={}) markdown = Redcarpet::Markdown.new(renderer, extensions={}) puts markdown.render %( hi 2)
Expected
<pre><code>hi 2 </code></pre>
Instead in gollum, which uses sundown via redcarpet, it's this.
<pre> <code>hi 2 </code> </pre>
I'm not sure where the issue is. Somehow two spaces are being added yet redcarpet in the above example returns the expected result.
The issue was nokogiri's to_xhtml method.
to_xhtml
Extra spacing is added.
https://github.com/github/gollum/issues/560#issuecomment-9812284
Expected
Instead in gollum, which uses sundown via redcarpet, it's this.
I'm not sure where the issue is. Somehow two spaces are being added yet redcarpet in the above example returns the expected result.