mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-23 16:08:53 -05:00
making textile and code blocks work nice together
This commit is contained in:
parent
4a2254665c
commit
2d8a17cd41
@ -75,6 +75,7 @@ module Jekyll
|
||||
code = super.join
|
||||
source = "<div><figure role=code>"
|
||||
source += @caption if @caption
|
||||
source = context['pygments_prefix'] + source if context['pygments_prefix']
|
||||
if @filetype
|
||||
@filetype = 'objc' if @filetype == 'm'
|
||||
@filetype = 'perl' if @filetype == 'pl'
|
||||
@ -82,6 +83,7 @@ module Jekyll
|
||||
else
|
||||
source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'<') + "</code></pre></figure></div>"
|
||||
end
|
||||
source = source + context['pygments_suffix'] if context['pygments_suffix']
|
||||
partial = Liquid::Template.parse(source)
|
||||
context.stack do
|
||||
partial.render(context)
|
||||
|
Loading…
Reference in New Issue
Block a user