(md_instance, **kwargs)
return parser
Build the default block parser used by Markdown.
Build the default block parser used by Markdown.
Build the default block parser used by Markdown .
def build_block_parser(md_instance, **kwargs):
    """ Build the default block parser used by Markdown. """
    parser = BlockParser(md_instance)
    parser.blockprocessors['empty'] = EmptyBlockProcessor(parser)
    parser.blockprocessors['indent'] = ListIndentProcessor(parser)
    parser.blockprocessors['code'] = CodeBlockProcessor(parser)
    parser.blockprocessors['hashheader'] = HashHeaderProcessor(parser)
    parser.blockprocessors['setextheader'] = SetextHeaderProcessor(parser)
    parser.blockprocessors['hr'] = HRProcessor(parser)
    parser.blockprocessors['olist'] = OListProcessor(parser)
    parser.blockprocessors['ulist'] = UListProcessor(parser)
    parser.blockprocessors['quote'] = BlockQuoteProcessor(parser)
    parser.blockprocessors['paragraph'] = ParagraphProcessor(parser)
    return parser
def build_block_parser ( md_instance , * * kwargs ) : parser = BlockParser ( md_instance ) parser . blockprocessors [ 'empty' ] = EmptyBlockProcessor ( parser ) parser . blockprocessors [ 'indent' ] = ListIndentProcessor ( parser ) parser . blockprocessors [ 'code' ] = CodeBlockProcessor ( parser ) parser . blockprocessors [ 'hashheader' ] = HashHeaderProcessor ( parser ) parser . blockprocessors [ 'setextheader' ] = SetextHeaderProcessor ( parser ) parser . blockprocessors [ 'hr' ] = HRProcessor ( parser ) parser . blockprocessors [ 'olist' ] = OListProcessor ( parser ) parser . blockprocessors [ 'ulist' ] = UListProcessor ( parser ) parser . blockprocessors [ 'quote' ] = BlockQuoteProcessor ( parser ) parser . blockprocessors [ 'paragraph' ] = ParagraphProcessor ( parser ) return parser