Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Test full link with parse_relative_links set
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Lane committed Oct 18, 2017
1 parent 765b2df commit 1832a88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ def test_link(self):
self.assertEqual(
out, '\nthis is a `link <http://example.com/>`_.\n')

def test_link_with_rel_link_enabled(self):
src = 'this is a [link](http://example.com/).'
out = self.conv_no_check(
src,
parse_relative_links=True
)
self.assertEqual(
out, '\nthis is a `link <http://example.com/>`_.\n')

def test_anchor(self):
src = 'this is an [anchor](#anchor).'
out = self.conv_no_check(
Expand Down

0 comments on commit 1832a88

Please sign in to comment.