more flexible textile and markdown extension matching
This commit is contained in:
parent
b45ac52cd5
commit
94c06d0100
|
@ -24,11 +24,11 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns nothing
|
# Returns nothing
|
||||||
def transform
|
def transform
|
||||||
case self.ext
|
case self.ext[1..-1]
|
||||||
when ".textile":
|
when /textile/i
|
||||||
self.ext = ".html"
|
self.ext = ".html"
|
||||||
self.content = RedCloth.new(self.content).to_html
|
self.content = RedCloth.new(self.content).to_html
|
||||||
when ".markdown":
|
when /markdown/i, /mkdn/i, /md/i
|
||||||
self.ext = ".html"
|
self.ext = ".html"
|
||||||
self.content = Jekyll.markdown_proc.call(self.content)
|
self.content = Jekyll.markdown_proc.call(self.content)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue