Class yii\apidoc\helpers\ApiMarkdown

Inheritanceyii\apidoc\helpers\ApiMarkdown » cebe\markdown\GithubMarkdown
Uses Traitsyii\apidoc\helpers\ApiMarkdownTrait
Available since version2.0
Source Code https://github.com/yiisoft/yii2-apidoc/blob/master/helpers/ApiMarkdown.php

A Markdown helper with support for class reference links.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$renderingContext yii\apidoc\helpers\ApiMarkdown

Public Methods

Hide inherited methods

MethodDescriptionDefined By
highlight() Highlights code yii\apidoc\helpers\ApiMarkdown
process() Converts markdown into HTML yii\apidoc\helpers\ApiMarkdown

Property Details

$renderer public property
$renderingContext protected property

Method Details

highlight() public method

Highlights code

string highlight$code$language )
$code string

Code to highlight

$language string

Language of the code to highlight

return string

HTML of highlighted code

process() public method

Converts markdown into HTML

string process$content$context null$paragraph false )
$content string
$context yii\apidoc\models\TypeDoc
$paragraph boolean
renderCode() protected method

void renderCode$block )
$block
renderHeadline() protected method

void renderHeadline$block )
$block
renderLink() protected method

void renderLink$block )
$block