framework/helpers/BaseMarkdown.php
public static function processParagraph($markdown, $flavor = null)
    {
        $parser = static::getParser($flavor);

        return $parser->parseParagraph($markdown);
    }
public static function processParagraph($markdown, $flavor = null)
    {
        $parser = static::getParser($flavor);

        return $parser->parseParagraph($markdown);
    }
Converts markdown into HTML but only parses inline elements.

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

@param string $markdown the markdown text to parse
@param string $flavor the markdown flavor to use. See [[$flavors]] for available values.
Defaults to [[$defaultFlavor]], if not set.
@return string the parsed HTML output
@throws InvalidArgumentException when an undefined flavor is given.