Skip to content

admonitions (note and warn) are not correctly rendered on github #68

Closed
@stefanfoulis

Description

@stefanfoulis

With rst it is easy to make admonitions for notes and warnings:

.. warning:: don't do this

Using github-markup to render this sort of thing correctly creates this output:

<div class="warning">
    <p class="first admonition-title">Warning</p>
    <p class="last">don't do this</p>
</div>

On github it seems this is just rendered as two normal <p> tags (In gists, the source browser and README.rst).

<p>Warning</p>
<p>don't do this</p>

And that turns out to look like this:


github current admonition rendering


This makes admonitions useless. Is github doing some extra post-processing of the output? If so, can it be modified to allow this construct to get through.

Just copying the correct code into the browser on a github page in firebug revealed, that stylesheets for this already exist (although they are not that pretty):


github current admonition rendering if the markup were correct


Something similar to the styling on readthedocs.org would be cool:


readthedocs admonition rendering


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions