diff options
author | deva <deva> | 2010-01-26 13:00:11 +0000 |
---|---|---|
committer | deva <deva> | 2010-01-26 13:00:11 +0000 |
commit | b5c4f48e2af63c2122b8bd791aff6237c243e78a (patch) | |
tree | 41a0cb7f14c4dbb361051349fe5169fa3bd354d2 /utils/markdown.php | |
parent | c3bc3d8165e5970fe880e3ff209be893e47e20fa (diff) |
Made header_text use span instead of div (xhtml compliance fix).
Diffstat (limited to 'utils/markdown.php')
-rw-r--r-- | utils/markdown.php | 4 |
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"; } |