tools/markdown: add support of command-line options
tools/markdown: new option to select HTML or XHTML output