From 67bb12b3e508b389f18efb6a992cc390680a7235 Mon Sep 17 00:00:00 2001 From: WhiteWinterWolf Date: Fri, 8 Sep 2017 13:45:19 +0200 Subject: 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:

Note

This is a floating note.

--- tests/extensions/admonition.html | 9 +++++++++ tests/extensions/admonition.txt | 8 ++++++++ 2 files changed, 17 insertions(+) (limited to 'tests/extensions') 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 @@

For something completely different.

You can also use a custom CSS class name.

+
+

And now...

+

For something completely different.

+

Several class names can be separated by space chars.

+
+
+

Note

+

The default title is the capitalized first class name.

+

An explicitly empty string prevents the title from being rendered.

diff --git a/tests/extensions/admonition.txt b/tests/extensions/admonition.txt index ab8434c..03ff4e9 100644 --- a/tests/extensions/admonition.txt +++ b/tests/extensions/admonition.txt @@ -25,6 +25,14 @@ Not part of an Admonition! You can also use a custom CSS class name. +!!! class1 class2 class3 "And now..." + For something completely different. + + Several class names can be separated by space chars. + +!!! note anotherclass + The default title is the capitalized first class name. + !!! tip "" An explicitly empty string prevents the title from being rendered. -- cgit v1.2.3