PHP Class VersionPress\Utils\Markdown

Show file Open project: versionpress/versionpress Class Usage Examples

Public Methods

Method Description
transform ( $text ) : string Transforms Markdown to HTML using {@link https://michelf.ca/projects/php-markdown/ PHP Markdown}.

Method Details

transform() public static method

One special feature is single line detection - if the passed $text is single line, this function removes the wrapping

element which PHPMarkdown automatically adds.

public static transform ( $text ) : string
$text
return string HTML