Skip to content

Commit

Permalink
Added test: External link to Markdown file
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Seiler committed Nov 4, 2019
1 parent ddd56e7 commit fc93aaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sphinx_generic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ This is a [pending ref](index)

[example]: http://example.com/foobar "Example"

External link to Markdown file: [Readme](https://github.com/readthedocs/recommonmark/blob/master/README.md).

Foo

----
Expand Down
6 changes: 6 additions & 0 deletions tests/test_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ def test_links(self):
'</a>'),
output
)
self.assertIn(
('External link to Markdown file: '
'<a class="reference external" '
'href="https://github.com/readthedocs/recommonmark/blob/master/README.md">Readme</a>.'),
output
)

def test_image(self):
output = self.read_file('index.html')
Expand Down

0 comments on commit fc93aaa

Please sign in to comment.