From 7ec426147a74757d6c4bc368c5b18515d83803dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Wed, 19 Nov 2025 19:25:12 +0100 Subject: [PATCH] refactor: Change name under which the links processor is registered Signed-off-by: pawamoy --- python/zensical/extensions/links.py | 2 +- python/zensical/extensions/preview.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/zensical/extensions/links.py b/python/zensical/extensions/links.py index 75f8022..9abc32c 100644 --- a/python/zensical/extensions/links.py +++ b/python/zensical/extensions/links.py @@ -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) # ----------------------------------------------------------------------------- diff --git a/python/zensical/extensions/preview.py b/python/zensical/extensions/preview.py index df9083f..9c7853d 100644 --- a/python/zensical/extensions/preview.py +++ b/python/zensical/extensions/preview.py @@ -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