aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
authorm5o <[email protected]>2018-01-19 18:30:17 +0100
committerXhmikosR <[email protected]>2018-01-19 19:30:17 +0200
commit0f53402fc041fd7a10571711a571df0df50892d3 (patch)
tree2ef72556bbb003698362cd1f1a41776fd7a55552 /_plugins
parentee4988164ea6e9e82722891a838934552f5b6634 (diff)
downloadbootstrap-0f53402fc041fd7a10571711a571df0df50892d3.tar.xz
bootstrap-0f53402fc041fd7a10571711a571df0df50892d3.zip
Use Jekyll's markdownify filter instead of a custom plugin (#25319)
Diffstat (limited to '_plugins')
-rw-r--r--_plugins/markdown-block.rb20
1 files changed, 0 insertions, 20 deletions
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)