summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--md_tw.py2
-rw-r--r--tests/test_md_tw.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/md_tw.py b/md_tw.py
index 2727a10..be4f281 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -156,7 +156,7 @@ class TWBlockLexer(mistune.BlockLexer):
'title': m.group(3),
}
self.tokens.append({
- 'type': 'def_links',
+ 'type': 'def_link',
'text': m.group(0)
})
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py
index 6f725b6..620605c 100644
--- a/tests/test_md_tw.py
+++ b/tests/test_md_tw.py
@@ -466,7 +466,7 @@ class TestTWBlockLexer(object):
}
tokens = process(tokens)
- def test_parse_def_links(self):
+ def test_parse_def_link(self):
tokens = self._parse('blexer-def-links.md')
expected_dls = [
@@ -481,7 +481,7 @@ class TestTWBlockLexer(object):
' [yahoo]: http://search.yahoo.com/ "Yahoo Search"\n',
' [msn]: http://search.msn.com/ "MSN Search"',
]
- self._validate(tokens, 'def_links', expected_dls)
+ self._validate(tokens, 'def_link', expected_dls)
def test_parse_def_footnotes(self):
tokens = self._parse('blexer-footnotes.md')