diff options
Diffstat (limited to 'md_tw.py')
-rw-r--r-- | md_tw.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -52,6 +52,13 @@ class TWBlockLexer(mistune.BlockLexer): 'text': m.group(0), }) + def parse_heading(self, m): + self.tokens.append({ + 'type': 'heading', + 'level': len(m.group(1)), + 'text': m.group(0), + }) + class TWInlineLexer(mistune.InlineLexer): """Text Wrap Inline level lexer for inline gramars.""" |