_plugins/markdown.rb
module Jekyll
class MarkdownBlock < Liquid::Block
def initialize(tag_name, text, tokens)
super
end
require 'kramdown'
def render(context)
content = super
Kramdown::Document.new(content).to_html.to_s
end
end
end
Liquid::Template.register_tag('markdown', Jekyll::MarkdownBlock)