Sha256: 26254e2bad438a3848f8814321a259f234199a497fc14bb4006a833b5f8e1d23
Contents?: true
Size: 473 Bytes
Versions: 14
Compression:
Stored size: 473 Bytes
Contents
require 'jekyll' require 'rmultimarkdown' class Jekyll::Converters::Markdown::MMD def initialize(config) @site_config = config end def matches(ext) ext =~ /^\.md$/i end def output_ext(ext) ".html" end 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 end
Version data entries
14 entries across 14 versions & 1 rubygems