Make rendering less finicky, now works on the first try!
This commit is contained in:
parent
c559b18f5a
commit
51e2f06516
4 changed files with 69 additions and 82 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue