temp.getElements('h1, h2, h3, h4, h5, h6').each(function(h){ var matches = h.innerHTML.match(anchor); if (matches) h.set('id', matches[1]); h.innerHTML = h.innerHTML.replace(anchor, ''); }); 
temp.getElements('h1, h2, h3, h4, h5, h6').each(function(h){ var matches = h.innerHTML.match(anchor); if (matches) h.set('id', matches[1]); h.innerHTML = h.innerHTML.replace(anchor, ''); }); 
  parse: function(markdown){    var html = ShowDown(markdown);    var temp = new Element('div').set('html', html);    var anchor = (/\{#(.*)\}/);    temp.getElements('h1, h2, h3, h4, h5, h6').each(function(h){      var matches = h.innerHTML.match(anchor);      if (matches) h.set('id', matches[1]);      h.innerHTML = h.innerHTML.replace(anchor, '');    });    temp.getElement('h1').set('class', 'first');    return temp;  },
5733	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5733/bb7ba4f85620c5ad07e48227c0a1b87153a9c92a/docs.js/clean/Docs/assets/docs.js