fix the bug render of ref and nolink
add unit test for function convertHTMLtoMarkdown