function Markdown_Parser::runBasicBlockGamut in Markdown 5
Same name and namespace in other branches
- 6 markdown.php \Markdown_Parser::runBasicBlockGamut()
1 call to Markdown_Parser::runBasicBlockGamut()
File
- ./
markdown.php, line 571
Class
Code
function runBasicBlockGamut($text) {
#
# Run block gamut tranformations, without hashing HTML blocks. This is
# useful when HTML blocks are known to be already hashed, like in the first
# whole-document pass.
#
foreach ($this->block_gamut as $method => $priority) {
$text = $this
->{$method}($text);
}
# Finally form paragraph and restore hashed blocks.
$text = $this
->formParagraphs($text);
return $text;
}