add support for markdown as an output format

This is useful when the input markdown is converted into parse tree
with 3BMD-GRAMMAR:PARSE-DOC, the parse tree is munged and is then
printed with 3BMD::PRINT-DOC-TO-STREAM-USING-FORMAT.