Skip to content

Commit f5c04d7

Browse files
committed
Flake8 formatting and changelog entry
1 parent cf09e08 commit f5c04d7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ See the [Contributing Guide](contributing.md) for details.
1616

1717
* Ensure nested elements inside inline comments are properly unescaped (#1571).
1818
* Make the docs build successfully with mkdocstrings-python 2.0 (#1575).
19+
* Backtick formatting permitted in reference links to match conventional
20+
links (#495).
1921

2022
## [3.10.0] - 2025-11-03
2123

markdown/inlinepatterns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ def makeTag(self, href: str, title: str, text: str) -> etree.Element:
931931
if title:
932932
el.set('title', title)
933933

934-
if '`' in text: # Process possible backtick within text
934+
if '`' in text: # Process possible backtick within text
935935
m = self.RE_BACKTICK.search(text)
936936
if m and m.group(3):
937937
el2 = etree.Element('code')

tests/test_syntax/inline/test_links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def test_title_containing_single_backtick(self):
182182
"""<p><a href="link">some `test</a></p>"""
183183
)
184184

185+
185186
class TestReferenceLinks(TestCase):
186187

187188
def test_ref_link(self):
@@ -487,7 +488,6 @@ def test_ref_link_with_containing_monospaced_text(self):
487488
"""<p><a href="http://example.com"><code>Text</code> after</a></p>"""
488489
)
489490

490-
491491
def test_ref_link_with_single_backtick(self):
492492
self.assertMarkdownRenders(
493493
self.dedent(

0 commit comments

Comments
 (0)