dstr.replace(/<\/code\><\/pre\>\n<pre\><code\>/g, '\n' )

  // Escaping Characters                
  return mdstr.replace(/\\([`_~\*\+\-\.\^\\\<\>\(\)\[\]])/gm, '$1' )
}

//===== parse markdown string into HTML content (cater code-block)
md.html = function (mdText) { 
  // replace \r\n to \n, and handle front matter for simple YAML
  mdText = mdText.replace(/\r\n/g, '\n').replace( /^---+\s*\n([\s\S]*?)\n---+\s*\n/, md.formatYAML )
  // handle code-block.
  mdText = mdText.replace(/\n~~~/g,'\n```').replace(/