Skip to content

Commit

Permalink
more flexible textile and markdown extension matching
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Jan 2, 2009
1 parent b45ac52 commit 94c06d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jekyll/convertible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def read_yaml(base, name)
#
# 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
Expand Down

0 comments on commit 94c06d0

Please sign in to comment.