diff options
author | rsiddharth <s@ricketyspace.net> | 2018-01-02 00:49:28 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-01-02 00:49:28 +0000 |
commit | ad8fa809c55e2bf2a6bf2e977f6683e90ad7200d (patch) | |
tree | e6e83e16745922476d71831ea7c3c2de37b80683 /tests/data | |
parent | 12903a82dc2ee039b0356855657e3f66173b9e92 (diff) |
md_tw.py: Add TWBlockLexer.parse_def_links.
* md_tw.py
(TWBlockLexer.parse_def_links): New method.
* tests/test_md_tw.py
(TestTWBlockLexer.test_parse_def_links): New test.
* tests/data/blexer-def-links.md: New file.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/blexer-def-links.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/data/blexer-def-links.md b/tests/data/blexer-def-links.md new file mode 100644 index 0000000..c09e417 --- /dev/null +++ b/tests/data/blexer-def-links.md @@ -0,0 +1,34 @@ +This is [an example](http://example.com/ "Title") inline link. + +[This link](http://example.net/) has no title attribute. + +See my [About](/about/) page for details. + +This is [Bob][bob]'s web space. + +This is [Alice][alice]'s web space. + +[bob]: http://bob.name/ "Bob's home" +[alice]: <http://alice.name/> "Alice's home" + +Some foo[bar]. + +[bar]: http://bar.beer/ "Foo Bar Beer" + +Visit [GNU.org][]. + +[GNU.org]: http://gnu.org + +John Gruber gets 10 times more traffic from [Google][1] than from +[Yahoo][2] or [MSN][3]. + + [1]: http://google.com/ "Google" + [2]: http://search.yahoo.com/ "Yahoo Search" + [3]: http://search.msn.com/ "MSN Search" + +John Gruber gets 10 times more traffic from [Google][] than from +[Yahoo][] or [MSN][]. + + [google]: http://google.com/ "Google" + [yahoo]: http://search.yahoo.com/ "Yahoo Search" + [msn]: http://search.msn.com/ "MSN Search" |