Permalink
Browse files

Added support for MultiMarkdown

  • Loading branch information...
Daniel Driver
Daniel Driver committed Jan 18, 2012
1 parent fa6d013 commit a07766e3c5cb1c78b7b77643f850a67cb721763a
Showing with 14 additions and 0 deletions.
  1. +3 −0 lib/jekyll.rb
  2. +11 −0 lib/jekyll/converters/markdown.rb
View
@@ -83,6 +83,9 @@ module Jekyll
'redcarpet' => {
'extensions' => []
},
'multimarkdown' => {
'extensions' => []
},
'kramdown' => {
'auto_ids' => true,
'footnote_nr' => 1,
@@ -38,6 +38,15 @@ def setup
STDERR.puts ' $ [sudo] gem install rdiscount'
raise FatalException.new("Missing dependency: rdiscount")
end
when 'multimarkdown'
begin
require 'multimarkdown'
@multimarkdown_extensions = @config['multimarkdown']['extensions'].map { |e| e.to_sym }
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem install multimarkdown'
raise FatalException.new("Missing dependency: multimarkdown")
end
when 'maruku'
begin
require 'maruku'
@@ -116,6 +125,8 @@ def convert(content)
end
when 'rdiscount'
RDiscount.new(content, *@rdiscount_extensions).to_html
when 'multimarkdown'
MultiMarkdown.new(content).to_html
when 'maruku'
Maruku.new(content).to_html
end

0 comments on commit a07766e

Please sign in to comment.