Merge pull request #126 from zensical/refactor/change-relpath-processor-name

refactor: Change name under which the links processor is registered
This commit is contained in:
Martin Donath
2025-11-25 20:20:24 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ class LinksExtension(Extension):
# after our treeprocessor, so we can check the original Markdown URIs
# before they are resolved to URLs.
processor = LinksProcessor(md, self.path, self.use_directory_urls)
md.treeprocessors.register(processor, "relpath", 0)
md.treeprocessors.register(processor, "zrelpath", 0)
# -----------------------------------------------------------------------------
+1 -1
View File
@@ -57,7 +57,7 @@ class PreviewProcessor(Treeprocessor):
"""
Run the treeprocessor.
"""
at = self.md.treeprocessors.get_index_for_name("relpath")
at = self.md.treeprocessors.get_index_for_name("zrelpath")
# Hack: Python Markdown has no notion of where it is, i.e., which file
# is being processed. This seems to be a deliberate design decision, as