Class BlockLexer¶
- Defined in File mistunege.py
Class Documentation¶
-
class
BlockLexer
¶ Block level lexer for block grammars.
Public Functions
-
__init__
(self self, rules rules = None, kwargs kwargs)¶
-
__call__
(self self, text text, rules rules = None)¶
-
parse
(self self, text text, rules rules = None)¶
-
parse_newline
(self self, m m)¶
-
parse_block_code
(self self, m m)¶
-
parse_fences
(self self, m m)¶
-
parse_heading
(self self, m m)¶
-
parse_lheading
(self self, m m)¶ Parse setext heading.
-
parse_hrule
(self self, m m)¶
-
parse_list_block
(self self, m m)¶
-
parse_block_quote
(self self, m m)¶
-
parse_def_links
(self self, m m)¶
-
parse_def_footnotes
(self self, m m)¶
-
parse_table
(self self, m m)¶
-
parse_nptable
(self self, m m)¶
-
parse_block_html
(self self, m m)¶
-
parse_paragraph
(self self, m m)¶
-
parse_text
(self self, m m)¶
Public Static Attributes
-
pymdtools.mistunege.BlockLexer.grammar_class = BlockGrammar
-
list pymdtools.mistunege.BlockLexer.default_rules= [ 'newline', 'hrule', 'block_code', 'fences', 'heading', 'nptable', 'lheading', 'block_quote', 'list_block', 'block_html', 'def_links', 'def_footnotes', 'table', 'paragraph', 'text' ]
-
tuple pymdtools.mistunege.BlockLexer.list_rules= ( 'newline', 'block_code', 'fences', 'lheading', 'hrule', 'block_quote', 'list_block', 'block_html', 'text', )
-
tuple pymdtools.mistunege.BlockLexer.footnote_rules= ( 'newline', 'block_code', 'fences', 'heading', 'nptable', 'lheading', 'hrule', 'block_quote', 'list_block', 'block_html', 'table', 'paragraph', 'text' )
-