Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
markdown
/
File Content:
postprocessors.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 Z d � Z d e j f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( u POST-PROCESSORS ============================================================================= Markdown also allows post-processors, which are similar to preprocessors in that they need to implement a "run" method. However, they are run after core processing. i ( t absolute_import( t unicode_literalsi ( t util( t odictNc K@ s: t j � } t | � | d <t � | d <t � | d <| S( u0 Build the default postprocessors for Markdown. u raw_htmlu amp_substituteu unescape( R t OrderedDictt RawHtmlPostprocessort AndSubstitutePostprocessort UnescapePostprocessor( t md_instancet kwargst postprocessors( ( s; /usr/lib/python2.7/site-packages/markdown/postprocessors.pyt build_postprocessors s t Postprocessorc B@ s e Z d Z d � Z RS( u Postprocessors are run after the ElementTree it converted back into text. Each Postprocessor implements a "run" method that takes a pointer to a text string, modifies it as necessary and returns a text string. Postprocessors must extend markdown.Postprocessor. c C@ s d S( u� Subclasses of Postprocessor should implement a `run` method, which takes the html document as a single text string and returns a (possibly modified) string. N( ( t selft text( ( s; /usr/lib/python2.7/site-packages/markdown/postprocessors.pyt run&