class Jekyll::Converters::Markdown::MMD
Public Class Methods
new(config)
click to toggle source
# File _plugins/multimarkdown.rb, line 5 def initialize(config) @site_config = config end
Public Instance Methods
convert(content)
click to toggle source
# File _plugins/multimarkdown.rb, line 17 def convert(content) content.sub! '<!--TOC-->', "**Table of Contents** \n\n{{TOC}}" content.sub! '<!--toc-->', "**Table of Contents** \n\n{{TOC}}" MultiMarkdown.new(content).to_html.force_encoding(Encoding::UTF_8) end
matches(ext)
click to toggle source
# File _plugins/multimarkdown.rb, line 9 def matches(ext) ext =~ /^\.md$/i end
output_ext(ext)
click to toggle source
# File _plugins/multimarkdown.rb, line 13 def output_ext(ext) ".html" end