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. |
Please login to continue.