1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-01 07:46:47 +02:00

Rearrange all the docs to allow for a docs/major.minor/ setup

This commit is contained in:
Mark Otto
2017-05-28 22:50:57 -07:00
committed by Mark Otto
parent 32153eb7cb
commit 3e76d65656
231 changed files with 40 additions and 15412 deletions

View File

@@ -0,0 +1,20 @@
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)