diff options
author | rsiddharth <s@ricketyspace.net> | 2018-02-18 20:18:52 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-02-18 20:18:52 +0000 |
commit | 6d34500e55eb225a89d26ed7606a772c638b6984 (patch) | |
tree | 5b957d733109806b89882aeb6d34ea52b43e4a35 /md_tw.py | |
parent | b6a4d7a645c784b7bd3f6d64298d7b9047cf22c3 (diff) |
md_tw.py: Add TWBlockLexer.parse_block_html.
* md_tw.py (TWBlockLexer)[parse_block_html]: New method.
* tests/test_md_tw.py (TestTWBlockLexer)
[test_parse_block_html]: Update test method.
Diffstat (limited to 'md_tw.py')
-rw-r--r-- | md_tw.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -201,6 +201,12 @@ class TWBlockLexer(mistune.BlockLexer): 'spaces': spaces }) + def parse_block_html(self, m): + self.tokens.append({ + 'type': 'block_html', + 'text': m.group(0) + }) + class TWInlineLexer(mistune.InlineLexer): """Text Wrap Inline level lexer for inline gramars.""" |