Module Import alias identifier Import alias FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Num Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpMod AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Return TupleLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr orelse Return TupleLoad NameLoad BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Num While CompareLt NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Num Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If NameLoad body If NameLoad body If AttributeLoad SubscriptLoad NameLoad Index Num attr body AugAssignAdd AttributeStore SubscriptLoad NameLoad Index Num attr NameLoad orelse Assign AttributeStore SubscriptLoad NameLoad Index Num attr NameLoad orelse If AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore ListLoad Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareGt NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad Expr Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body For NameStore BinOpAdd ListLoad NameLoad Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call NameLoad NameLoad Assign NameStore NameLoad Continue Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Slice NameLoad Expr Call NameLoad NameLoad Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad BinOpAdd Call NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Index Num If UnaryOpNot Call NameLoad NameLoad body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body For NameStore BinOpAdd ListLoad NameLoad Call AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd NameLoad Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Return TupleLoad BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Num NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict Assign NameStore ListLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore NameLoad body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str If BoolOpAnd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareNotIn AttributeLoad NameLoad attr ListLoad Str Str body If BoolOpAnd BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign AttributeStore NameLoad attr NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A __init__ markdown N/A re isString N/A N/A s N/A N/A N/A  Check if it's string  N/A N/A N/A isinstance s unicode N/A isinstance s str N/A Processor N/A N/A __init__ N/A N/A self markdown_instance N/A None N/A N/A markdown_instance N/A N/A N/A self markdown markdown_instance N/A N/A Treeprocessor N/A Processor N/A N/A 
    Treeprocessors are run on the ElementTree object before serialization.

    Each Treeprocessor implements a "run" method that takes a pointer to an
    ElementTree, modifies it as necessary and returns an ElementTree
    object.

    Treeprocessors must extend markdown.Treeprocessor.

     run N/A N/A self root N/A N/A N/A 
        Subclasses of Treeprocessor should implement a `run` method, which
        takes a root ElementTree. This method can return another ElementTree 
        object, and the existing root ElementTree will be replaced, or it can 
        modify the current tree and return None.
         N/A N/A N/A InlineProcessor N/A Treeprocessor N/A N/A 
    A Treeprocessor that traverses a tree, applying inline patterns.
     __init__ N/A N/A self md N/A N/A N/A N/A self __placeholder_prefix N/A markdown INLINE_PLACEHOLDER_PREFIX N/A N/A self __placeholder_suffix N/A markdown ETX N/A N/A self __placeholder_length N/A N/A 4 N/A len N/A self __placeholder_prefix N/A len N/A self __placeholder_suffix N/A N/A self __placeholder_re N/A N/A re compile N/A N/A markdown INLINE_PLACEHOLDER ([0-9]{4}) N/A N/A self markdown md N/A __makePlaceholder N/A N/A self type N/A N/A N/A  Generate a placeholder  N/A id N/A %04d N/A len N/A self stashed_nodes N/A hash N/A N/A markdown INLINE_PLACEHOLDER id N/A N/A hash id N/A __findPlaceholder N/A N/A self data index N/A N/A N/A 
        Extract id from data string, start from index

        Keyword arguments:

        * data: string
        * index: index, from which we start search

        Returns: placeholder id and string index, after the found placeholder.
         N/A m N/A N/A N/A self __placeholder_re search data index N/A m N/A N/A N/A N/A N/A m group 1 N/A N/A m end N/A N/A N/A None N/A index 1 N/A __stashNode N/A N/A self node type N/A N/A N/A  Add node to stash  N/A N/A placeholder id N/A N/A self __makePlaceholder type N/A N/A N/A self stashed_nodes N/A id node N/A placeholder N/A __handleInline N/A N/A self data patternIndex N/A 0 N/A N/A 
        Process string with inline patterns and replace it
        with placeholders

        Keyword arguments:

        * data: A line of Markdown text
        * patternIndex: The index of the inlinePattern to start with

        Returns: String with placeholders.

         N/A N/A N/A isinstance data N/A markdown AtomicString N/A N/A startIndex 0 N/A N/A patternIndex N/A len N/A N/A self markdown inlinePatterns N/A N/A N/A data matched startIndex N/A N/A self __applyPattern N/A N/A N/A N/A self markdown inlinePatterns value_for_index patternIndex data patternIndex startIndex N/A N/A matched N/A N/A patternIndex 1 N/A data N/A __processElementText N/A N/A self node subnode isText N/A True N/A N/A 
        Process placeholders in Element.text or Element.tail
        of Elements popped from self.stashed_nodes.

        Keywords arguments:

        * node: parent node
        * subnode: processing node
        * isText: bool variable, True - it's text, False - it's tail

        Returns: None

         N/A isText N/A N/A text N/A subnode text N/A N/A subnode text None N/A N/A text N/A subnode tail N/A N/A subnode tail None N/A childResult N/A N/A self __processPlaceholders text subnode N/A N/A N/A isText N/A node subnode N/A N/A pos N/A N/A N/A N/A node getchildren index subnode N/A N/A N/A node remove subnode N/A N/A pos 0 N/A N/A N/A childResult reverse N/A newChild childResult N/A N/A N/A N/A node insert pos newChild N/A __processPlaceholders N/A N/A self data parent N/A N/A N/A 
        Process string with placeholders and generate ElementTree tree.

        Keyword arguments:

        * data: string with placeholders instead of ElementTree elements.
        * parent: Element, which contains processing inline data

        Returns: list with ElementTree elements with applied inline patterns.
         linkText N/A N/A text N/A N/A N/A text N/A N/A result N/A N/A N/A N/A result N/A -1 tail N/A N/A N/A N/A result N/A -1 tail text N/A N/A N/A N/A result N/A -1 tail text N/A N/A N/A parent text N/A N/A N/A parent text text N/A N/A N/A parent text text N/A N/A result N/A N/A strartIndex 0 N/A data N/A N/A index N/A N/A data find N/A self __placeholder_prefix strartIndex N/A N/A index -1 N/A N/A N/A id phEndIndex N/A N/A self __findPlaceholder data index N/A N/A id N/A self stashed_nodes N/A N/A node N/A N/A N/A self stashed_nodes get id N/A N/A index 0 N/A N/A text N/A data N/A strartIndex index N/A N/A linkText text N/A N/A N/A isString node N/A N/A child N/A N/A node N/A N/A node getchildren N/A N/A N/A child tail N/A N/A N/A N/A N/A child tail strip N/A N/A N/A N/A self __processElementText node child False N/A N/A child text N/A N/A N/A N/A N/A child text strip N/A N/A N/A N/A self __processElementText child child N/A N/A N/A linkText node N/A strartIndex phEndIndex N/A N/A strartIndex phEndIndex N/A N/A N/A result append node N/A N/A end N/A index N/A len prefix N/A N/A linkText N/A data N/A strartIndex end N/A strartIndex end N/A N/A text N/A data N/A strartIndex N/A N/A linkText text N/A data N/A result N/A __applyPattern N/A N/A self pattern data patternIndex startIndex N/A 0 N/A N/A 
        Check if the line fits the pattern, create the necessary
        elements, add it to stashed_nodes.

        Keyword arguments:

        * data: the text to be processed
        * pattern: the pattern to be checked
        * patternIndex: index of current pattern
        * startIndex: string index, from which we starting search

        Returns: String with placeholders instead of ElementTree elements.

         N/A match N/A N/A N/A N/A pattern getCompiledRegExp match N/A data N/A startIndex N/A leftData N/A data N/A startIndex N/A N/A match N/A N/A N/A data False 0 N/A node N/A N/A pattern handleMatch match N/A N/A node None N/A N/A N/A data True N/A N/A len leftData N/A N/A N/A match span N/A len N/A N/A match groups N/A 0 N/A N/A N/A isString node N/A N/A N/A N/A isinstance N/A node text N/A markdown AtomicString N/A N/A child N/A N/A node N/A N/A node getchildren N/A N/A N/A N/A isString node N/A N/A N/A child text N/A N/A N/A child text N/A N/A self __handleInline N/A child text N/A patternIndex 1 N/A N/A child tail N/A N/A N/A child tail N/A N/A self __handleInline N/A child tail patternIndex N/A placeholder N/A N/A self __stashNode node N/A N/A pattern type N/A N/A N/A %s%s%s%s N/A leftData N/A N/A match group 1 placeholder N/A N/A N/A match groups N/A -1 True 0 N/A run N/A N/A self tree N/A N/A N/A Apply inline patterns to a parsed Markdown tree.

        Iterate over ElementTree, find elements with inline tag, apply inline
        patterns and append newly created Elements to tree.  If you don't
        want process your data with inline paterns, instead of normal string,
        use subclass AtomicString:

            node.text = markdown.AtomicString("data won't be processed with inline patterns")

        Arguments:

        * markdownTree: ElementTree object, representing Markdown tree.

        Returns: ElementTree object with applied inline patterns.

         N/A N/A self stashed_nodes N/A N/A stack N/A tree N/A stack N/A N/A currElement N/A N/A stack pop N/A insertQueue N/A N/A child N/A N/A currElement getchildren N/A N/A N/A N/A child text N/A N/A isinstance N/A child text N/A markdown AtomicString N/A N/A text N/A child text N/A N/A child text None N/A lst N/A N/A self __processPlaceholders N/A N/A self __handleInline text child N/A stack lst N/A N/A N/A insertQueue append N/A child lst N/A N/A N/A child getchildren N/A N/A N/A N/A stack append child N/A N/A element lst insertQueue N/A N/A N/A element text N/A N/A N/A element text N/A N/A N/A markdown inlinepatterns handleAttributes N/A element text element N/A i 0 N/A newChild lst N/A N/A N/A newChild tail N/A N/A N/A newChild tail N/A N/A N/A markdown inlinepatterns handleAttributes N/A newChild tail element N/A N/A newChild text N/A N/A N/A newChild text N/A N/A N/A markdown inlinepatterns handleAttributes N/A newChild text newChild N/A N/A N/A element insert i newChild N/A i 1 N/A tree N/A N/A PrettifyTreeprocessor N/A Treeprocessor N/A N/A  Add linebreaks to the html document.  _prettifyETree N/A N/A self elem N/A N/A N/A  Recursively add linebreaks to ElementTree children.  N/A i N/A N/A N/A N/A markdown isBlockLevel N/A elem tag N/A N/A elem tag N/A code pre N/A N/A N/A N/A N/A N/A elem text N/A N/A N/A N/A elem text strip N/A len elem N/A N/A markdown isBlockLevel N/A N/A elem N/A 0 tag N/A N/A N/A elem text i N/A e elem N/A N/A N/A N/A markdown isBlockLevel N/A e tag N/A N/A N/A N/A self _prettifyETree e N/A N/A N/A N/A elem tail N/A N/A N/A N/A elem tail strip N/A N/A N/A elem tail i N/A N/A N/A N/A elem tail N/A N/A N/A N/A elem tail strip N/A N/A N/A elem tail i N/A run N/A N/A self root N/A N/A N/A  Add linebreaks to ElementTree root object.  N/A N/A N/A self _prettifyETree root N/A brs N/A N/A root getiterator br N/A br brs N/A N/A N/A N/A N/A br tail N/A N/A N/A N/A br tail strip N/A N/A N/A br tail N/A N/A N/A br tail N/A 
%s N/A br tail N/A N/A