Tabs, not spaces.

This commit is contained in:
Evert Pot 2015-02-26 15:05:41 -05:00
parent 49c9cfe063
commit 5b576b2c24

View file

@ -790,11 +790,11 @@ class Markdown implements MarkdownInterface {
$block = "<h$level$idAtt>".$this->runSpanGamut($matches[2])."</h$level>"; $block = "<h$level$idAtt>".$this->runSpanGamut($matches[2])."</h$level>";
return "\n" . $this->hashBlock($block) . "\n\n"; return "\n" . $this->hashBlock($block) . "\n\n";
} }
protected function _doHeaders_callback_atx($matches) { protected function _doHeaders_callback_atx($matches) {
# id attribute generation # id attribute generation
$idAtt = is_callable($this->header_id_func) ? call_user_func($this->header_id_func, $matches[2]) : null; $idAtt = is_callable($this->header_id_func) ? call_user_func($this->header_id_func, $matches[2]) : null;
if ($idAtt) $idAtt = ' id="' . htmlspecialchars($idAtt, ENT_COMPAT, 'UTF-8') . '"'; if ($idAtt) $idAtt = ' id="' . htmlspecialchars($idAtt, ENT_COMPAT, 'UTF-8') . '"';
$level = strlen($matches[1]); $level = strlen($matches[1]);
$block = "<h$level$idAtt>".$this->runSpanGamut($matches[2])."</h$level>"; $block = "<h$level$idAtt>".$this->runSpanGamut($matches[2])."</h$level>";