You are here

function Markdown_Parser::runBasicBlockGamut in Markdown 6

Same name and namespace in other branches
  1. 5 markdown.php \Markdown_Parser::runBasicBlockGamut()
1 call to Markdown_Parser::runBasicBlockGamut()
Markdown_Parser::runBlockGamut in ./markdown.php

File

./markdown.php, line 606

Class

Markdown_Parser

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;
}