Skip to content

Support for reStructuredText's admonitions #133

@slig

Description

@slig

Hi,

I needed these kind of warning in my project:

admonitions

Here is the rst syntax.

And here's how I did:

!!! note "Did you know?"
    Here is a first paragraph

    1. first item
    2. second item

Which outputs:

<div class="admonition note">
    <p class="admonition-title">Did you know?</p>
    <p>Here is a first paragraph</p>
    <ol>
        <li>first item</li>
        <li>second item</li>
    </ol>
</div>

Here's my implementation https://gist.github.com/3487734. I'm not sure it fits the scope of python-markdown, but if it does, I can clean the code, write tests, docs and make a pull-request.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions