Fix problem where the inline doc viewer added a "markdown" string in successive calls