You are here

protected function Markdown::runBasicBlockGamut in Express 8

* 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. * *

Parameters

string $text: * @return string

1 call to Markdown::runBasicBlockGamut()
Markdown::runBlockGamut in vendor/michelf/php-markdown/Michelf/Markdown.php
* Run block gamut tranformations. * * We need to escape raw HTML in Markdown source before doing anything * else. This need to be done for each block, and not only at the * begining in the Markdown function since hashed blocks can be part…

File

vendor/michelf/php-markdown/Michelf/Markdown.php, line 556

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

protected function runBasicBlockGamut($text) {
  foreach ($this->block_gamut as $method => $priority) {
    $text = $this
      ->{$method}($text);
  }

  // Finally form paragraph and restore hashed blocks.
  $text = $this
    ->formParagraphs($text);
  return $text;
}