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 9814a19..7ebeedf 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