-
|
Hi, thank you for the great plugin. Is there an option to instruct the macros plugin to save the expanded markdown? E.g. there is a bunch of macroses in my docs that produce some markdown by processing data, but to feed the "expanded" markdown to an LLM I need mkdocs-macros to finish its job and present the site in md format without passing it over to mkdocs |
Beta Was this translation helpful? Give feedback.
Answered by
fralau
Jan 13, 2026
Replies: 1 comment
-
|
Thanks for your question. As suggested in the doc, you could use the external module to do something like that: def on_post_page_macros(env):
"""
Actions to be done after macro interpretation,
when the macros have been rendered
"""
with open('output_file.md') as f:
f.write(env.markdown) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hellt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your question. As suggested in the doc, you could use the external module to do something like that: