code: function doHeaders(text) {
  
          text = text.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm, function(wholeMatch,m1){return hashBlock("<h1>" + runSpanGamut(m1) + "</h1>");});
          text = text.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm, function(matchFound,m1){return hashBlock("<h2>" + runSpanGamut(m1) + "</h2>");});
          text = text.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm, function(wholeMatch,m1,m2) {
              var h_level = m1.length;
              return hashBlock("<h" + h_level + ">" + runSpanGamut(m2) + "</h" + h_level + ">");
          });
  
          return text;
      }
docs: }}} {{{ doHeaders