Make rendering less finicky, now works on the first try!

This commit is contained in:
flaviut 2014-07-13 11:45:59 -04:00
commit 51e2f06516
4 changed files with 69 additions and 82 deletions

View file

@ -1,12 +0,0 @@
# All files in the 'lib' directory will be loaded
# before nanoc starts compiling.
class CodeClassSimplfier < Nanoc::Filter
identifier :code_class_simplfier
type :text
def run(content, params={})
return content.dup.gsub!(/"language-\w+?"/, "codehilite")
end
end