I have done an extension of markdown-it to bring all this features with an easy markdown syntax. It is working but in the moment implemented internally in my alinex-report package.
If you are interested I may extract it into its own package to be used within docker, too. But it will bring some bigger dependencies like phantomjs with it which will automatically be installed, too.