Meanwhile, the ability to specify attributes within _any_ tag has been added to my markdown stream parser. Enjoy.
https://github.com/am-kantox/md