You are here

function Markdown_Parser::_doHeaders_callback_atx in Markdown 5

Same name and namespace in other branches
  1. 6 markdown.php \Markdown_Parser::_doHeaders_callback_atx()
1 method overrides Markdown_Parser::_doHeaders_callback_atx()
MarkdownExtra_Parser::_doHeaders_callback_atx in ./markdown.php

File

./markdown.php, line 918

Class

Markdown_Parser

Code

function _doHeaders_callback_atx($matches) {
  $level = strlen($matches[1]);
  $block = "<h{$level}>" . $this
    ->runSpanGamut($matches[2]) . "</h{$level}>";
  return "\n" . $this
    ->hashBlock($block) . "\n\n";
}