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..cb522e50a3ca 100644 --- a/docs/4.0/content/reboot.md +++ b/docs/4.0/content/reboot.md @@ -63,37 +63,37 @@ All heading elements—e.g., `
` are reset to have their `margin-
` are reset to have their `margin- All lists—`
` element is reset to remove its `margin-top` and use `rem` units for its `margin-bottom`.-{% markdown %}## Tables @@ -363,4 +360,4 @@ HTML5 adds [a new global attribute named `[hidden]`](https://developer.mozilla.o `[hidden]` is not compatible with jQuery's `$(...).hide()` and `$(...).show()` methods. Therefore, we don't currently especially endorse `[hidden]` over other techniques for managing the `display` of elements. {% endcallout %} -To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/visibility/) instead. \ No newline at end of file +To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/visibility/) instead. diff --git a/docs/4.0/content/typography.md b/docs/4.0/content/typography.md index 53634509fe7d..c8c9ccf3c47a 100644 --- a/docs/4.0/content/typography.md +++ b/docs/4.0/content/typography.md @@ -32,37 +32,37 @@ All HTML headings, `.example-element { margin-bottom: 1rem; }-{% endmarkdown %}` through `
`, are available.
- {% 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 diff --git a/docs/4.0/getting-started/introduction.md b/docs/4.0/getting-started/introduction.md index 6a24287047e0..48e6dc549894 100644 --- a/docs/4.0/getting-started/introduction.md +++ b/docs/4.0/getting-started/introduction.md @@ -39,7 +39,7 @@ Curious which components explicitly require jQuery, our JS, and Popper.js? Click - {% markdown %}``{% endmarkdown %} + {{ "``" | markdownify }} h6. Bootstrap heading ## Starter template diff --git a/docs/4.0/migration.md b/docs/4.0/migration.md index 343765f8651d..56d05417d138 100644 --- a/docs/4.0/migration.md +++ b/docs/4.0/migration.md @@ -313,7 +313,6 @@ Our documentation received an upgrade across the board as well. Here's the low d - `bugify.rb` is used to efficiently list out the entries on our [browser bugs]({{ site.baseurl }}/docs/{{ site.docs_version }}/browser-bugs/) page. - `example.rb` is a custom fork of the default `highlight.rb` plugin, allowing for easier example-code handling. - `callout.rb` is a similar custom fork of that, but designed for our special docs callouts. - - `markdown-block.rb` is used to to render Markdown snippets within HTML elements like tables. - [jekyll-toc](https://github.com/toshimaru/jekyll-toc) is used to generate our table of contents. - All docs content has been rewritten in Markdown (instead of HTML) for easier editing. - Pages have been reorganized for simpler content and a more approachable hierarchy.Show components requiring JavaScript
-{% markdown %} +{% capture markdown %} - Alerts for dismissing - Buttons for toggling states and checkbox/radio functionality - Carousel for all slide behaviors, controls, and indicators @@ -49,7 +49,8 @@ Curious which components explicitly require jQuery, our JS, and Popper.js? Click - Navbar for extending our Collapse plugin to implement responsive behavior - Tooltips and popovers for displaying and positioning (also requires [Popper.js](https://popper.js.org/)) - Scrollspy for scroll behavior and navigation updates -{% endmarkdown %} +{% endcapture %} +{{ markdown | markdownify }}