yii\console\Markdown - Yii2 类参考手册
Class yii\console\Markdown
| Inheritance | yii\console\Markdown » cebe\markdown\Parser |
|---|---|
| Uses Traits | cebe\markdown\block\FencedCodeTrait, cebe\markdown\inline\CodeTrait, cebe\markdown\inline\EmphStrongTrait, cebe\markdown\inline\StrikeoutTrait |
| Available since version | 2.0 |
A Markdown parser that enhances markdown for reading in console environments.
Based on cebe/markdown.
Protected Properties
隐藏继承的属性 Hide inherited properties
| 属性Property | 类型 Type | 简介 Description | 定义在 Defined By |
|---|---|---|---|
| $escapeCharacters | array | These are "escapeable" characters. | yii\console\Markdown |
Protected Methods
隐藏继承的方法 Hide inherited methods
| 方法 Method | 简介 Description | 定义在 Defined By |
|---|---|---|
| renderCode() | Renders a code block. | yii\console\Markdown |
| renderEmph() | Renders empathized elements. | yii\console\Markdown |
| renderInlineCode() | Renders an inline code span `. |
yii\console\Markdown |
| renderParagraph() | Render a paragraph block. | yii\console\Markdown |
| renderStrike() | Renders the strike through feature. | yii\console\Markdown |
| renderStrong() | Renders strong elements. | yii\console\Markdown |
属性详情 Property Details
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
Renders a code block.
| protected string renderCode ( $block ) | ||
| $block | array | |
Renders empathized elements.
| protected string renderEmph ( $element ) | ||
| $element | array | |
Renders an inline code span `.
| protected string renderInlineCode ( $element ) | ||
| $element | array | |
Render a paragraph block.
| protected string renderParagraph ( $block ) | ||
| $block | string | |
Renders the strike through feature.
| protected string renderStrike ( $element ) | ||
| $element | array | |
Renders strong elements.
| protected string renderStrong ( $element ) | ||
| $element | array | |