Skip to content

Instantly share code, notes, and snippets.

@blakesmith
Created June 23, 2010 03:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blakesmith/449463 to your computer and use it in GitHub Desktop.
Save blakesmith/449463 to your computer and use it in GitHub Desktop.
# An example Jekyll converter. Utilizes the new plugin system.
#
#
# 1. Make a _plugins directory in your jekyll site, and put this class in a file there.
# 2. Any file in the _posts directory ending in .upcase will be processed using this converter.
module Jekyll
class UpcaseConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /upcase/i
end
def output_ext(ext)
".html"
end
def convert(content)
content.upcase
end
end
end
@nhoizey
Copy link

nhoizey commented Feb 25, 2016

Will it run before of after Markdown/Kramdown parsing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment