mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-10 22:55:07 -05:00
more flexible textile and markdown extension matching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user