Parse only one line of markdown text to html in JavaScript