mirror of
https://github.com/zensical/zensical.git
synced 2026-05-03 17:40:31 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user