tools: flatten apidoc headers
ensure optional parameters are not treated as markedown links by replacing the children of headers nodes with a single text node containing the raw markup;
Fixes issue identified in https://github.com/nodejs/node/pull/21490#issuecomment-406859983
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines