You are here

protected function Markdown::outdent in Markdown 7

* Remove one level of line-leading tabs or spaces *

Parameters

string $text: * @return string

4 calls to Markdown::outdent()
Markdown::_doCodeBlocks_callback in includes/Markdown.php
* Code block parsing callback *
Markdown::_processListItems_callback in includes/Markdown.php
* List item parsing callback *
MarkdownExtra::_processDefListItems_callback_dd in includes/MarkdownExtra.php
* Callback for <dd> elements in definition lists *
MarkdownExtra::_stripFootnotes_callback in includes/MarkdownExtra.php
* Callback for stripping footnotes *

File

includes/Markdown.php, line 1808

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

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