You are here

function Markdown_Parser::runBlockGamut in Markdown 6

Same name and namespace in other branches
  1. 5 markdown.php \Markdown_Parser::runBlockGamut()
4 calls to Markdown_Parser::runBlockGamut()
MarkdownExtra_Parser::appendFootnotes in ./markdown.php
MarkdownExtra_Parser::_processDefListItems_callback_dd in ./markdown.php
Markdown_Parser::_doBlockQuotes_callback in ./markdown.php
Markdown_Parser::_processListItems_callback in ./markdown.php

File

./markdown.php, line 592

Class

Markdown_Parser

Code

function runBlockGamut($text) {

  #

  # 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 of

  # list items and could have been indented. Indented blocks would have

  # been seen as a code block in a previous pass of hashHTMLBlocks.
  $text = $this
    ->hashHTMLBlocks($text);
  return $this
    ->runBasicBlockGamut($text);
}