I ended up having to wrap the pre code in a div for RDiscount not to freak
This commit is contained in:
parent
aba5089283
commit
2118b55045
|
@ -8,7 +8,14 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def render(context)
|
def render(context)
|
||||||
"<pre class='syntax-highlight:#{@lang}'>#{escape(super)}</pre>"
|
#The div is required because RDiscount blows ass
|
||||||
|
<<-HTML
|
||||||
|
<div>
|
||||||
|
<pre>
|
||||||
|
<code class='#{@lang}'>#{h(super.to_s).strip}</code>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
HTML
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue