From 9545615b3a52b6a7be7f42edb9022167b56ab355 Mon Sep 17 00:00:00 2001 From: Evert Pot Date: Sat, 28 Feb 2015 17:22:57 -0500 Subject: [PATCH] Fixed header generation. Silly mistake. --- Michelf/Markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index efe10c7..ed3dc0c 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -786,7 +786,7 @@ class Markdown implements MarkdownInterface { # id attribute generation $idAtt = $this->_generateIdFromHeaderValue($matches[1]); - $block = "".$this->runSpanGamut($matches[2]).""; + $block = "".$this->runSpanGamut($matches[1]).""; return "\n" . $this->hashBlock($block) . "\n\n"; } protected function _doHeaders_callback_atx($matches) {