A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.yiiframework.com/doc/api/2.0/yii-console-markdown below:

Markdown, yii\console\Markdown | API Documentation for Yii 2.0

Class yii\console\Markdown

A Markdown parser that enhances markdown for reading in console environments.

Based on cebe/markdown.

Property Details

Hide inherited properties

These are "escapeable" characters. When using one of these prefixed with a backslash, the character will be outputted without the backslash and is not interpreted as markdown.

Method Details

Hide inherited methods

Renders a code block.

Source code

                protected function renderCode($block)
{
    return Console::ansiFormat($block['content'], [Console::NEGATIVE]) . "\n\n";
}

            

Renders empathized elements.

Source code

                protected function renderEmph($element)
{
    return Console::ansiFormat($this->renderAbsy($element[1]), [Console::ITALIC]);
}

            

Renders an inline code span `.

Source code

                protected function renderInlineCode($element)
{
    return Console::ansiFormat($element[1], [Console::UNDERLINE]);
}

            

Render a paragraph block.

Source code

                protected function renderParagraph($block)
{
    return rtrim($this->renderAbsy($block['content'])) . "\n\n";
}

            

Renders the strike through feature.

Source code

                protected function renderStrike($element)
{
    return Console::ansiFormat($this->parseInline($this->renderAbsy($element[1])), [Console::CROSSED_OUT]);
}

            

Renders strong elements.

Source code

                protected function renderStrong($element)
{
    return Console::ansiFormat($this->renderAbsy($element[1]), [Console::BOLD]);
}

            

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4