From 43c0095206ac8dd0c8ee6335d610c00830e01db8 Mon Sep 17 00:00:00 2001 From: m5o Date: Mon, 15 Jan 2018 22:50:43 +0100 Subject: [PATCH 1/5] use jekyll markdown converter * use jekyll markdown converter * remove custom markdown plugin --- _plugins/markdown-block.rb | 20 ----------- docs/4.0/content/reboot.md | 45 +++++++++++------------- docs/4.0/content/typography.md | 12 +++---- docs/4.0/getting-started/introduction.md | 5 +-- 4 files changed, 29 insertions(+), 53 deletions(-) delete mode 100644 _plugins/markdown-block.rb diff --git a/_plugins/markdown-block.rb b/_plugins/markdown-block.rb deleted file mode 100644 index f9f1531b5887..000000000000 --- 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) diff --git a/docs/4.0/content/reboot.md b/docs/4.0/content/reboot.md index de6dc23a3f20..21f2a03a7f69 100644 --- a/docs/4.0/content/reboot.md +++ b/docs/4.0/content/reboot.md @@ -63,37 +63,37 @@ All heading elements—e.g., `

`—and `

` are reset to have their `margin- - {% markdown %}`

`{% endmarkdown %} + {{ "`

`" | markdownify }} h1. Bootstrap heading - {% markdown %}`

`{% endmarkdown %} + {{ "`

" | markdownify }} h2. Bootstrap heading - {% markdown %}`

`{% endmarkdown %} + {{ "`

" | markdownify }} h3. Bootstrap heading - {% markdown %}`

`{% endmarkdown %} + {{ "`

" | markdownify }} h4. Bootstrap heading - {% markdown %}`
`{% endmarkdown %} + {{ "`
" | markdownify }} h5. Bootstrap heading - {% markdown %}`
`{% endmarkdown %} + {{ "`
" | markdownify }} h6. Bootstrap heading @@ -105,7 +105,7 @@ All heading elements—e.g., `

`—and `

` are reset to have their `margin- All lists—`