str = mdstr.replace(/^-{3,}|^\_{3,}|^\*{3,}$/gm, '<hr>').replace(/\n\n<hr\>/g, '\n<br><hr>')

  // header => <h1>..<h5> 
  mdstr = mdstr.replace(/^##### (.*?)\s*#*$/gm, '<h5>$1</h5>')
            .replace(/^#### (.*?)\s*#*$/gm, '<h4>$1</h4>')
            .replace(/^### (.*?)\s*#*$/gm, '<h3>$1</h3>')
            .replace(/^## (.*?)\s*#*$/gm, '<h2>$1</h2>')
            .replace(/^# (.*?)\s*#*$/gm, '<h1>$1</h1>')
            .replace(/^<h(\d)\>(.*?)\s*{(.*)}\s*<\/h\d\>$/gm, '<h$1 id="$3">$2</h$1>')
      
  //