Skip to content

Commit 57c9a36

Browse files
authored
Fix refs section removal breaking external links on Sphinx build too (#2229)
1 parent c33b724 commit 57c9a36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pep_sphinx_extensions/pep_processor/transforms/pep_footer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class PEPFooter(transforms.Transform):
1818
1919
"""
2020

21-
# Uses same priority as docutils.transforms.TargetNotes
22-
default_priority = 520
21+
# Set low priority so ref targets aren't removed before they are needed
22+
default_priority = 999
2323

2424
def apply(self) -> None:
2525
pep_source_path = Path(self.document["source"])

0 commit comments

Comments
 (0)