The ddoc text macro system in the dmd source code macro.h and macro.c should be implemented as a phobos module. The inputs should be: 1. an input range 2. an associative array of key=value pairs for the macro definitions And the output should be another input range for the expanded output.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9595 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB