The Chain-of-Responsibility software development design pattern provides a way to separate a source document (Markdown) from its final presentation format (PDF).
On a related note, I've developed an open source editor that can edit Markdown, R Markdown, and XML documents[1][2]. The input document is translated in real-time to HTML. Using the Chain-of-Responsibility pattern[3] makes it straightforward to introduce additional processor chains, which could include slide show output via CSS.
On a minor technical note, including HTML tags (such as <small>...</small>) defeats one of the key benefits of Markdown: separation of content from presentation. An alternative is to use named blocks to classify text, such as[4]:
::: footer
Copyright 2019 ...
:::
[1]: https://github.com/DaveJarvis/scrivenvar[2]: https://github.com/DaveJarvis/scrivenvar/blob/master/USAGE.m...
[3]: https://github.com/DaveJarvis/scrivenvar/tree/master/src/mai...