aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
authorlucascono <[email protected]>2017-10-04 05:33:17 -0300
committerlucascono <[email protected]>2017-10-04 05:33:17 -0300
commit8c04a74c8c7f0174ea08bc02fa3762f49bf615a3 (patch)
treedb9d6923c082243d765c57885992db8dd26a70b5 /_plugins
parent9aff890efa3798f831b714c41794c9fee0684bae (diff)
parentb29b1e155880ac953899889c9cbb67f7f7df0529 (diff)
downloadbootstrap-8c04a74c8c7f0174ea08bc02fa3762f49bf615a3.tar.xz
bootstrap-8c04a74c8c7f0174ea08bc02fa3762f49bf615a3.zip
Merge remote-tracking branch 'refs/remotes/twbs/v4-dev' into v4-dev
Diffstat (limited to '_plugins')
-rw-r--r--_plugins/example.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/_plugins/example.rb b/_plugins/example.rb
index 8a86a2202..913289720 100644
--- a/_plugins/example.rb
+++ b/_plugins/example.rb
@@ -34,7 +34,7 @@ Syntax Error in tag 'example' while parsing the following markup:
#{markup}
-Valid syntax: example <lang>
+Valid syntax: example <lang> [id=foo]
eos
end
end
@@ -55,7 +55,7 @@ eos
end
def example(output)
- "<div class=\"bd-example\" data-example-id=\"#{@options[:id]}\">\n#{output}\n</div>"
+ "<div class=\"bd-example\"" + (@options[:id] ? " data-example-id=\"#{@options[:id]}\"" : "") + ">\n#{output}\n</div>"
end
def remove_holderjs(code)