summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
Diffstat (limited to 'md_tw.py')
-rw-r--r--md_tw.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/md_tw.py b/md_tw.py
index 7cb203b..218d324 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -45,6 +45,13 @@ class TWBlockLexer(mistune.BlockLexer):
'text': m.group(0),
})
+ def parse_fences(self, m):
+ self.tokens.append({
+ 'type': 'code',
+ 'lang': None,
+ 'text': m.group(0),
+ })
+
class TWInlineLexer(mistune.InlineLexer):
"""Text Wrap Inline level lexer for inline gramars."""