Class yii\apidoc\helpers\ApiMarkdown
Inheritance | yii\apidoc\helpers\ApiMarkdown » cebe\markdown\GithubMarkdown |
---|---|
Uses Traits | yii\apidoc\helpers\ApiMarkdownTrait, yii\apidoc\helpers\MarkdownHighlightTrait |
Available since version | 2.0 |
A Markdown helper with support for class reference links.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$blockTranslations | array | Translation for guide block types | yii\apidoc\helpers\ApiMarkdown |
$renderer | yii\apidoc\renderers\BaseRenderer | yii\apidoc\helpers\ApiMarkdown |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$headings | yii\apidoc\helpers\ApiMarkdown | ||
$renderingContext | yii\apidoc\helpers\ApiMarkdown |
Public Methods
Method | Description | Defined By |
---|---|---|
getHeadings() | yii\apidoc\helpers\ApiMarkdown | |
highlight() | Highlights code | yii\apidoc\helpers\MarkdownHighlightTrait |
parse() | yii\apidoc\helpers\ApiMarkdown | |
process() | Converts markdown into HTML | yii\apidoc\helpers\ApiMarkdown |
renderTable() | Add bootstrap classes to tables. | yii\apidoc\helpers\ApiMarkdown |
Protected Methods
Method | Description | Defined By |
---|---|---|
applyToc() | yii\apidoc\helpers\ApiMarkdown | |
consumeQuote() | Consume lines for a blockquote element | yii\apidoc\helpers\ApiMarkdownTrait |
parseApiLinks() | yii\apidoc\helpers\ApiMarkdownTrait | |
prepare() | yii\apidoc\helpers\ApiMarkdown | |
renderApiLink() | Renders API link | yii\apidoc\helpers\ApiMarkdownTrait |
renderBrokenApiLink() | Renders API link that is broken i.e. points nowhere | yii\apidoc\helpers\ApiMarkdownTrait |
renderCode() | yii\apidoc\helpers\MarkdownHighlightTrait | |
renderHeadline() | yii\apidoc\helpers\ApiMarkdown | |
renderLink() | yii\apidoc\helpers\ApiMarkdown | |
renderQuote() | Renders a blockquote | yii\apidoc\helpers\ApiMarkdownTrait |
translateBlockType() | yii\apidoc\helpers\ApiMarkdown |
Property Details
Method Details
protected void applyToc ( $content ) | ||
$content |
public array getHeadings ( ) | ||
return | array | The headlines of this document |
---|
public void parse ( $text ) | ||
$text |
protected void prepare ( ) |
Converts markdown into HTML
public static string process ( $content, $context = null, $paragraph = false ) | ||
$content | string | |
$context | yii\apidoc\models\TypeDoc | |
$paragraph | boolean |
protected void renderHeadline ( $block ) | ||
$block |
protected void renderLink ( $block ) | ||
$block |
Add bootstrap classes to tables.
public void renderTable ( $block ) | ||
$block |
protected void translateBlockType ( $type ) | ||
$type |