mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-10-31 23:35:00 -04:00
removed an unnecessary whitespace indent adjustment from backtick codeblock
This commit is contained in:
parent
f52798c149
commit
abd9e8f488
@ -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('<','<').gsub('>','>'))
|
||||
"<figure class='code'>#{@caption}#{code}</figure>"
|
||||
|
Loading…
Reference in New Issue
Block a user