helpers\BaseMarkdown processParagraph()

processParagraph() public static method

Converts markdown into HTML but only parses inline elements.

This can be useful for parsing small comments or description lines.

public static string processParagraph ( $markdown, $flavor = null )
$markdown string

The markdown text to parse

$flavor string

The markdown flavor to use. See $flavors for available values. Defaults to $defaultFlavor, if not set.

return string

The parsed HTML output

throws yii\base\InvalidParamException

when an undefined flavor is given.

doc_Yii
2016-10-30 17:05:29
Comments
Leave a Comment

Please login to continue.