From 0f53402fc041fd7a10571711a571df0df50892d3 Mon Sep 17 00:00:00 2001 From: m5o Date: Fri, 19 Jan 2018 18:30:17 +0100 Subject: Use Jekyll's markdownify filter instead of a custom plugin (#25319) --- _plugins/markdown-block.rb | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 _plugins/markdown-block.rb (limited to '_plugins') diff --git a/_plugins/markdown-block.rb b/_plugins/markdown-block.rb deleted file mode 100644 index f9f1531b5..000000000 --- a/_plugins/markdown-block.rb +++ /dev/null @@ -1,20 +0,0 @@ -module Jekyll - class MarkdownBlock < Liquid::Block - alias_method :render_block, :render - - def initialize(tag_name, markup, tokens) - super - end - - # Uses the default Jekyll markdown parser to - # parse the contents of this block - # - def render(context) - site = context.registers[:site] - converter = site.find_converter_instance(::Jekyll::Converters::Markdown) - converter.convert(render_block(context)) - end - end -end - -Liquid::Template.register_tag('markdown', Jekyll::MarkdownBlock) -- cgit v1.2.3