diff options
| author | lucascono <[email protected]> | 2017-10-04 05:33:17 -0300 |
|---|---|---|
| committer | lucascono <[email protected]> | 2017-10-04 05:33:17 -0300 |
| commit | 8c04a74c8c7f0174ea08bc02fa3762f49bf615a3 (patch) | |
| tree | db9d6923c082243d765c57885992db8dd26a70b5 /_plugins/example.rb | |
| parent | 9aff890efa3798f831b714c41794c9fee0684bae (diff) | |
| parent | b29b1e155880ac953899889c9cbb67f7f7df0529 (diff) | |
| download | bootstrap-8c04a74c8c7f0174ea08bc02fa3762f49bf615a3.tar.xz bootstrap-8c04a74c8c7f0174ea08bc02fa3762f49bf615a3.zip | |
Merge remote-tracking branch 'refs/remotes/twbs/v4-dev' into v4-dev
Diffstat (limited to '_plugins/example.rb')
| -rw-r--r-- | _plugins/example.rb | 4 |
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) |
