Skip to content
Discussion options

You must be logged in to vote

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) 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hellt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
useful tip A how-to, good to know
2 participants