Code blocks didn't work with textile
| ... | ... |
@@ -75,6 +75,7 @@ module Jekyll |
| 75 | 75 |
code = super.join |
| 76 | 76 |
source = "<div><figure role=code>" |
| 77 | 77 |
source += @caption if @caption |
| 78 |
+ source = context['pygments_prefix'] + source if context['pygments_prefix'] |
|
| 78 | 79 |
if @filetype |
| 79 | 80 |
@filetype = 'objc' if @filetype == 'm' |
| 80 | 81 |
@filetype = 'perl' if @filetype == 'pl' |
| ... | ... |
@@ -82,6 +83,7 @@ module Jekyll |
| 82 | 82 |
else |
| 83 | 83 |
source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'<') + "</code></pre></figure></div>" |
| 84 | 84 |
end |
| 85 |
+ source = source + context['pygments_suffix'] if context['pygments_suffix'] |
|
| 85 | 86 |
partial = Liquid::Template.parse(source) |
| 86 | 87 |
context.stack do |
| 87 | 88 |
partial.render(context) |