This is a sample repo with a minimal example of the behavior I desire and describe in fralau/mkdocs_macros_plugin#75.