diff --git a/docs/_plugins/callout.rb b/docs/_plugins/callout.rb
new file mode 100644
index 000000000..29ecbc99d
--- /dev/null
+++ b/docs/_plugins/callout.rb
@@ -0,0 +1,29 @@
+# Source: http://stackoverflow.com/questions/19169849/how-to-get-markdown-processed-content-in-jekyll-tag-plugin
+
+module Jekyll
+ module Tags
+ class CalloutTag < Liquid::Block
+
+ def initialize(tag_name, type, tokens)
+ super
+ @type = type
+ if type == "danger"
+ @type = "danger"
+ elsif type == "warning"
+ @type = "warning"
+ elsif type == "info"
+ @type = "info"
+ end
+ end
+
+ def render(context)
+ site = context.registers[:site]
+ converter = site.getConverterImpl(::Jekyll::Converters::Markdown)
+ output = converter.convert(super(context))
+ "
#{output}
"
+ end
+ end
+ end
+end
+
+Liquid::Template.register_tag('callout', Jekyll::Tags::CalloutTag)
diff --git a/docs/assets/scss/_callouts.scss b/docs/assets/scss/_callouts.scss
index e8b7c1d5e..0ba52fd84 100644
--- a/docs/assets/scss/_callouts.scss
+++ b/docs/assets/scss/_callouts.scss
@@ -31,6 +31,6 @@
h4 { color: $color; }
}
-.bd-callout-danger { @include bs-callout-variant($bd-danger); }
-.bd-callout-warning { @include bs-callout-variant($bd-warning); }
.bd-callout-info { @include bs-callout-variant($bd-info); }
+.bd-callout-warning { @include bs-callout-variant($bd-warning); }
+.bd-callout-danger { @include bs-callout-variant($bd-danger); }
diff --git a/docs/assets/scss/_layout.scss b/docs/assets/scss/_layout.scss
index e97ec1a46..bf36dbdc1 100644
--- a/docs/assets/scss/_layout.scss
+++ b/docs/assets/scss/_layout.scss
@@ -62,6 +62,11 @@
> h3 {
margin-top: 1.5rem;
}
+
+ > ul li,
+ > ol li {
+ margin-bottom: .25rem;
+ }
}
.bd-title {
diff --git a/docs/components/alerts.md b/docs/components/alerts.md
index 796b463ba..83f34f5b7 100644
--- a/docs/components/alerts.md
+++ b/docs/components/alerts.md
@@ -7,10 +7,11 @@ Provide contextual feedback messages for typical user actions with the handful o
Wrap any text and an optional dismiss button in `.alert` and one of the four contextual classes (e.g., `.alert-success`) for basic alert messages.
-
-
No default class
-
Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.
-
+{% callout info %}
+#### No default class
+
+Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.
+{% endcallout %}
{% example html %}
@@ -41,10 +42,11 @@ Build on any alert by adding an optional `.alert-dismissible` and [close button]
{% endexample %}
-
-
Ensure proper behavior across all devices
-
Be sure to use the <button> element with the data-dismiss="alert" data attribute.
-
+{% callout warning %}
+#### Ensure proper behavior across all devices
+
+Be sure to use the `