Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad body Return CompareEq SubscriptLoad NameLoad Index Num NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str While NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num body If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Break decorator_list decorator_list
N/A __future__ unicode_literals __future__ absolute_import N/A util N/A odict State N/A list N/A N/A  Track the current and nested state of the parser. 
    
    This utility class is used to track the state of the BlockParser and 
    support multiple levels if nesting. It's just a simple API wrapped around
    a list. Each time a state is set, that state is appended to the end of the
    list. Each time a state is reset, that state is removed from the end of
    the list.

    Therefore, each time a state is set for a nested block, that state must be 
    reset when we back out of that level of nesting or the state could be
    corrupted.

    While all the methods of a list object are available, only the three
    defined below need be used.

     set N/A N/A self state N/A N/A N/A  Set a new state.  N/A N/A N/A self append state N/A reset N/A N/A self N/A N/A N/A  Step back one step in nested state.  N/A N/A N/A self pop N/A isstate N/A N/A self state N/A N/A N/A  Test that top (current) level is of given state.  N/A N/A len self N/A N/A N/A N/A self N/A -1 state N/A N/A False N/A N/A BlockParser N/A N/A N/A  Parse Markdown blocks into an ElementTree object. 
    
    A wrapper class that stitches the various BlockProcessors together,
    looping through them and creating an ElementTree object.
     __init__ N/A N/A self markdown N/A N/A N/A N/A self blockprocessors N/A N/A odict OrderedDict N/A N/A self state N/A State N/A N/A self markdown markdown N/A parseDocument N/A N/A self lines N/A N/A N/A  Parse a markdown document into an ElementTree. 
        
        Given a list of lines, an ElementTree object (not just a parent Element)
        is created and the root element is passed to the parser as the parent.
        The ElementTree object is returned.
        
        This should only be called on an entire document, not pieces.

         N/A N/A self root N/A N/A N/A util etree Element N/A N/A self markdown doc_tag N/A N/A N/A self parseChunk N/A self root N/A N/A join lines N/A N/A N/A N/A util etree ElementTree N/A self root N/A parseChunk N/A N/A self parent text N/A N/A N/A  Parse a chunk of markdown text and attach to given etree node. 
        
        While the ``text`` argument is generally assumed to contain multiple
        blocks which will be split on blank lines, it could contain only one
        block. Generally, this method would be called by extensions when
        block parsing is required. 
        
        The ``parent`` etree Element passed in is altered in place. 
        Nothing is returned.

         N/A N/A N/A self parseBlocks parent N/A N/A text split N/A parseBlocks N/A N/A self parent blocks N/A N/A N/A  Process blocks of markdown text and attach to given etree node. 
        
        Given a list of ``blocks``, each blockprocessor is stepped through
        until there are no blocks left. While an extension could potentially
        call this method directly, it's generally expected to be used internally.

        This is a public method as an extension may need to add/alter additional
        BlockProcessors which call this method to recursively parse a nested
        block.

         N/A blocks N/A N/A processor N/A N/A N/A self blockprocessors values N/A N/A N/A N/A processor test parent N/A blocks N/A 0 N/A N/A N/A N/A N/A processor run parent blocks False N/A N/A N/A N/A