Fixed header generation. Silly mistake.

This commit is contained in:
Evert Pot 2015-02-28 17:22:57 -05:00
parent 6ceb7ceb8c
commit 9545615b3a

View file

@ -786,7 +786,7 @@ class Markdown implements MarkdownInterface {
# id attribute generation
$idAtt = $this->_generateIdFromHeaderValue($matches[1]);
$block = "<h$level$idAtt>".$this->runSpanGamut($matches[2])."</h$level>";
$block = "<h$level$idAtt>".$this->runSpanGamut($matches[1])."</h$level>";
return "\n" . $this->hashBlock($block) . "\n\n";
}
protected function _doHeaders_callback_atx($matches) {