removed an unnecessary whitespace indent adjustment from backtick codeblock

This commit is contained in:
Brandon Mathis 2012-05-21 20:07:36 -05:00
parent f52798c149
commit abd9e8f488

View File

@ -23,9 +23,6 @@ module BacktickCodeBlock
@caption = "<figcaption><span>#{$2}</span></figcaption>"
end
if str.match(/\A( {4}|\t)/)
str = str.gsub(/^( {4}|\t)/, '')
end
if @lang.nil? || @lang == 'plain'
code = tableize_code(str.gsub('<','&lt;').gsub('>','&gt;'))
"<figure class='code'>#{@caption}#{code}</figure>"