Render markdown to an HTML fragment

Description

renderMarkdown transforms the markdown text provided by the
user in either the file or text variable. The transformation is
either written to the output file or returned to the user. The default
rendering target is "HTML".