I don't think Markdown should be (ab)used as a programming language. It should be treated as a plaintext container that has some formatting to organize the contents.
Agreed, if you need programmable content you can add some Javascript: https://www.markdownlang.com/advanced/javascript.html
Agreed, if you need programmable content you can add some Javascript: https://www.markdownlang.com/advanced/javascript.html