diff options
author | WhiteWinterWolf <github@whitewinterwolf.com> | 2017-09-08 13:45:19 +0200 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2018-07-24 14:42:42 -0400 |
commit | 67bb12b3e508b389f18efb6a992cc390680a7235 (patch) | |
tree | f9d45a6eee6e9f93d8ebab8bb20991deb05fec16 /tests/extensions/admonition.html | |
parent | d7764996e4e08faefaf3564fa71c19751847b55f (diff) | |
download | markdown-67bb12b3e508b389f18efb6a992cc390680a7235.tar.gz markdown-67bb12b3e508b389f18efb6a992cc390680a7235.tar.bz2 markdown-67bb12b3e508b389f18efb6a992cc390680a7235.zip |
Add the possibility to set additional classes
Additional CSS classes names can be appended to the admonition name
using spaces as separators.
The following markdown:
!!! note floatright
This is a floating note.
Generates the following HTML code:
<div class="admonition note floatright">
<p class="admonition-title">Note</p>
<p>This is a floating note.</p>
</div>
Diffstat (limited to 'tests/extensions/admonition.html')
-rw-r--r-- | tests/extensions/admonition.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/extensions/admonition.html b/tests/extensions/admonition.html index 511d71a..8812dcb 100644 --- a/tests/extensions/admonition.html +++ b/tests/extensions/admonition.html @@ -26,6 +26,15 @@ <p>For something completely different.</p> <p>You can also use a custom CSS class name.</p> </div> +<div class="admonition class1 class2 class3"> +<p class="admonition-title">And now...</p> +<p>For something completely different.</p> +<p>Several class names can be separated by space chars.</p> +</div> +<div class="admonition note anotherclass"> +<p class="admonition-title">Note</p> +<p>The default title is the capitalized first class name.</p> +</div> <div class="admonition tip"> <p>An explicitly empty string prevents the title from being rendered.</p> </div> |