Skip to content

Commit

Permalink
Add test for links in angle brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbonothing64 committed Mar 27, 2024
1 parent 4c14ba6 commit 3358618
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verto/tests/ExternalLinkTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ def test_angle_brackets(self):
'''Tests paths with brackets_in_link, inside angle brackets.'''
test_string = self.read_test_file(self.processor_name, 'angle_brackets.md')

# processor = ExternalLinkPattern(self.ext, self.md.parser)
# self.assertIsNotNone(re.search(processor.compiled_re, test_string))
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))

converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'angle_brackets_expected.html', strip=True).strip()
Expand Down
1 change: 1 addition & 0 deletions verto/tests/assets/external-link/angle_brackets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check out this [website](<https://en.wikipedia.org/wiki/Entropy_(information_theory)>).
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>Check out this <a href="https://en.wikipedia.org/wiki/Entropy_(information_theory)" target="_blank">website</a>.</p>

0 comments on commit 3358618

Please sign in to comment.