You are here

function Markdown_Parser::outdent in Markdown 5

Same name and namespace in other branches
  1. 6 markdown.php \Markdown_Parser::outdent()
4 calls to Markdown_Parser::outdent()
MarkdownExtra_Parser::_processDefListItems_callback_dd in ./markdown.php
MarkdownExtra_Parser::_stripFootnotes_callback in ./markdown.php
Markdown_Parser::_doCodeBlocks_callback in ./markdown.php
Markdown_Parser::_processListItems_callback in ./markdown.php

File

./markdown.php, line 1566

Class

Markdown_Parser

Code

function outdent($text) {

  #

  # Remove one level of line-leading tabs or spaces

  #
  return preg_replace('/^(\\t|[ ]{1,' . $this->tab_width . '})/m', '', $text);
}