summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/markdown.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/markdown.php b/utils/markdown.php
index 08a2b2a..b594cf4 100644
--- a/utils/markdown.php
+++ b/utils/markdown.php
@@ -2092,14 +2092,14 @@ class MarkdownExtra_Parser extends Markdown_Parser {
$level = $matches[3]{0} == '=' ? 1 : 2;
$attr = $this->_doHeaders_attr($id =& $matches[2]);
$class = strtolower(str_replace(" ", "_", $this->runSpanGamut($matches[1])));
- $block = "<div class=\"header\"><h$level$attr class=\"header_$class\"><div class=\"header_text\">".$this->runSpanGamut($matches[1])."</div></h$level></div>";
+ $block = "<div class=\"header\"><h$level$attr class=\"header_$class\"><span class=\"header_text\">".$this->runSpanGamut($matches[1])."</span></h$level></div>";
return "\n" . $this->hashBlock($block) . "\n\n";
}
function _doHeaders_callback_atx($matches) {
$level = strlen($matches[1]);
$attr = $this->_doHeaders_attr($id =& $matches[3]);
$class = strtolower(str_replace(" ", "_", $this->runSpanGamut($matches[2])));
- $block = "<div class=\"header\"><h$level$attr class=\"header_$class\"><div class=\"header_text\">".$this->runSpanGamut($matches[2])."</div></h$level></div>";
+ $block = "<div class=\"header\"><h$level$attr class=\"header_$class\"><span class=\"header_text\">".$this->runSpanGamut($matches[2])."</span></h$level></div>";
return "\n" . $this->hashBlock($block) . "\n\n";
}