more flexible textile and markdown extension matching

This commit is contained in:
Tom Preston-Werner 2009-01-02 13:07:48 -08:00
parent b45ac52cd5
commit 94c06d0100
1 changed files with 3 additions and 3 deletions

View File

@ -24,11 +24,11 @@ module Jekyll
#
# Returns nothing
def transform
case self.ext
when ".textile":
case self.ext[1..-1]
when /textile/i
self.ext = ".html"
self.content = RedCloth.new(self.content).to_html
when ".markdown":
when /markdown/i, /mkdn/i, /md/i
self.ext = ".html"
self.content = Jekyll.markdown_proc.call(self.content)
end