Just curious - do we know if there is any prior art on other systems for handling this?
I'm not aware of any. Just emailed mandoc's author to ask.