Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Commit fc93aaa

Browse files
author
Laurent Seiler
committed
Added test: External link to Markdown file
1 parent ddd56e7 commit fc93aaa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/sphinx_generic/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ This is a [pending ref](index)
1717

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

20+
External link to Markdown file: [Readme](https://github.com/readthedocs/recommonmark/blob/master/README.md).
21+
2022
Foo
2123

2224
----

tests/test_sphinx.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ def test_links(self):
125125
'</a>'),
126126
output
127127
)
128+
self.assertIn(
129+
('External link to Markdown file: '
130+
'<a class="reference external" '
131+
'href="https://github.com/readthedocs/recommonmark/blob/master/README.md">Readme</a>.'),
132+
output
133+
)
128134

129135
def test_image(self):
130136
output = self.read_file('index.html')

0 commit comments

Comments
 (0)