aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
authorGijs Boddeus <[email protected]>2017-10-04 08:46:03 +0200
committerGitHub <[email protected]>2017-10-04 08:46:03 +0200
commit263190305e1208b183611fe511ea8f983932a00d (patch)
tree8cc874b98d5d9e7d9db66b078d94e5dc1db2c4e8 /_plugins
parentcc092272eefa0e89bebfc716c8df8214d2804c77 (diff)
parent682ad1fff58fb6586dceaf31d490aaa522110e59 (diff)
downloadbootstrap-263190305e1208b183611fe511ea8f983932a00d.tar.xz
bootstrap-263190305e1208b183611fe511ea8f983932a00d.zip
Merge branch 'v4-dev' into yiq-function-update
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)