Can you auto-append snippets only for specific pages/directories? #2530
-
I was wondering if it was possible to make the snippet extension only auto-append snippets for specific file/folder paths? If not, could it be considered? For example like this: markdown_extensions:
- pymdownx.snippets:
auto_append: ['footnotes.md']
auto_append_paths: ['posts/*'] # Would only auto-append to files inside the 'posts' folder. |
Beta Was this translation helpful? Give feedback.
Answered by
facelessuser
Nov 15, 2024
Replies: 1 comment 1 reply
-
Python Markdown doesn't know about your Document app's structure. As a matter of fact, Python Markdown doesn't even carry around a file path, so know, it has no concept of where the Markdown buffer came from or where it lives on your storage. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Andre601
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python Markdown doesn't know about your Document app's structure. As a matter of fact, Python Markdown doesn't even carry around a file path, so know, it has no concept of where the Markdown buffer came from or where it lives on your storage.