Provide backwards-compatibility for change in #1037.

This commit is contained in:
Parker Moore 2013-05-07 16:45:06 +02:00
parent 6b9ef70d7b
commit f9e3cf21f9
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ module Jekyll
end
def add_code_tags(code, lang)
code = code.sub(/<pre>/,'<pre><code class="language-' + lang + '">')
code = code.sub(/<pre>/, "<pre><code class=\"#{lang} language-#{lang}\">")
code = code.sub(/<\/pre>/,"</code></pre>")
end
end