Solar_Markdown_Wiki_Filter::prepare()

public string Solar_Markdown_Wiki_Filter::prepare ( string $text )

Pre-filters source text in the preparation phase.

Inherited from Solar_Markdown_Plugin_Prefilter.

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