Replies: 1 comment 5 replies
-
You can do this using pymdown's snippets feature. Add something like this to pymdownx.snippets:
auto_append:
- includes/autoappend.md |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Kia ora.
I am in the process of translating a documentation written in Spinx (in reStructured text, so .rst) to use it with Material for MKDocs.
The rst made use of substitutions or replacements (as described here and here).
I like this idea of defining something like a variable once and then calling it in the .md file.
Unfortunately, searching for 'substitution', 'replace', 'epilog', etc. hasn't revealed anything similar for Material.
I'd like to use this variable in one, or ideally several md files and while it is being rendered, a longer text string is automatically replacing the variable name.
Thanks for your help.
J
Beta Was this translation helpful? Give feedback.
All reactions