3 \ @ sx d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd l Z G d d deZG dd d eZi fddZ d S )a Admonition extension for Python-Markdown ======================================== Adds rST-style admonitions. Inspired by [rST][] feature with the same name. The syntax is (followed by an indented block with the contents): !!! [type] [optional explicit title] Where `type` is used as a CSS class name of the div. If not present, `title` defaults to the capitalized `type`, so "note" -> "Note". rST suggests the following `types`, but you're free to use whatever you want: attention, caution, danger, error, hint, important, note, tip, warning A simple example: !!! note This is the first line inside the box. Outputs:
Note
This is the first line inside the box
Did you know?
Another line here.