helpers/ApiMarkdownLaTeX.php
public static function process($content, $context = null, $paragraph = false)
    {
        if (!isset(Markdown::$flavors['api-latex'])) {
            Markdown::$flavors['api-latex'] = new static;
        }

        if (is_string($context)) {
            $context = static::$renderer->apiContext->getType($context);
        }
        Markdown::$flavors['api-latex']->renderingContext = $context;

        if ($paragraph) {
            return Markdown::processParagraph($content, 'api-latex');
        } else {
            return Markdown::process($content, 'api-latex');
        }
    }
public static function process($content, $context = null, $paragraph = false)
    {
        if (!isset(Markdown::$flavors['api-latex'])) {
            Markdown::$flavors['api-latex'] = new static;
        }

        if (is_string($context)) {
            $context = static::$renderer->apiContext->getType($context);
        }
        Markdown::$flavors['api-latex']->renderingContext = $context;

        if ($paragraph) {
            return Markdown::processParagraph($content, 'api-latex');
        } else {
            return Markdown::process($content, 'api-latex');
        }
    }
public static function process ( $ content , $ context = null , $ paragraph = false ) { if ( ! isset ( Markdown :: $ flavors [ 'api-latex' ] ) ) { Markdown :: $ flavors [ 'api-latex' ] = new static ; } if ( is_string ( $ context ) ) { $ context = static :: $ renderer -> apiContext -> getType ( $ context ) ; } Markdown :: $ flavors [ 'api-latex' ] -> renderingContext = $ context ; if ( $ paragraph ) { return Markdown :: processParagraph ( $ content , 'api-latex' ) ; } else { return Markdown :: process ( $ content , 'api-latex' ) ; } }
Converts markdown into HTML

@param string $content
@param TypeDoc $context
@param bool $paragraph
@return string
Converts markdown into HTML