Skip to content

Add support for additional Admonition classes - #685

Merged
waylan merged 1 commit into
Python-Markdown:masterfrom
waylan:admon-classes
Jul 24, 2018
Merged

Add support for additional Admonition classes#685
waylan merged 1 commit into
Python-Markdown:masterfrom
waylan:admon-classes

Conversation

@waylan

Copy link
Copy Markdown
Member

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>

This is an update to #580 which has been rebased on master and conflicts resolved.

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>
@waylanwaylan added this to the Version 3.0 milestone Jul 24, 2018
@waylanwaylan added feature Feature request. extension Related to one or more of the included extensions. labels Jul 24, 2018
@waylan
waylan merged commit 67bb12b into Python-Markdown:masterJul 24, 2018
@waylan
waylan deleted the admon-classes branch July 24, 2018 18:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensionRelated to one or more of the included extensions.featureFeature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@waylan@WhiteWinterWolf