Skip to content

Add support for additional Admonition classes#685

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

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

Conversation

@waylan
Copy link
Member

@waylan waylan commented Jul 24, 2018

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>
@waylan waylan added this to the Version 3.0 milestone Jul 24, 2018
@waylan waylan 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:master Jul 24, 2018
@waylan waylan deleted the admon-classes branch July 24, 2018 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension Related to one or more of the included extensions. feature Feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments