custom markdown-to-html maker in javascript