Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
markdown
/
extensions
/
File Content:
admonition.pyc
� �(�Sc @@ s� d Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l Z d e f d � � YZ d e f d � � YZ i d � Z d S( u� 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: <div class="admonition note"> <p class="admonition-title">Note</p> <p>This is the first line inside the box</p> </div> You can also specify the title and CSS class of the admonition: !!! custom "Did you know?" Another line here. Outputs: <div class="admonition custom"> <p class="admonition-title">Did you know?</p> <p>Another line here.</p> </div> [rST]: http://docutils.sourceforge.net/docs/ref/rst/directives.html#specific-admonitions By [Tiago Serafim](http://www.tiagoserafim.com/). i ( t absolute_import( t unicode_literalsi ( t Extensioni ( t BlockProcessor( t etreeNt AdmonitionExtensionc B@ s e Z d Z d � Z RS( u+ Admonition extension for Python-Markdown. c C@ s3 | j | � | j j j d t | j � d � d S( u&