Solar_Markdown_Plugin_Prefilter::prepare()

public string Solar_Markdown_Plugin_Prefilter::prepare ( string $text )

Pre-filters source text in the preparation phase.

Parameters

  • (string) $text: The source text.

Returns

  • (string) $text The text after being filtered.

Description

Pre-filters source text in the preparation phase.

Converts DOS and Mac OS pre-X line endings to Unix line endings, adds 2 newlines to the end of the source, and converts all whitespace-only lines to simple newlines. Also converts tabs to spaces intelligently, keeping tab columns lined up.



Local