Class CMarkdown
CMarkdown converts the captured content from markdown syntax to HTML code.
CMarkdown can be used as either a widget or a filter. It is a wrapper of
CMarkdownParser
. CMarkdown adds an additional option CMarkdown::$purifyOutput
which can be set true so that the converted HTML code is purified
before being displayed.
- official markdown syntax
- markdown extra syntax
- CMarkdownParser markdown with syntax highlighting
- CComponent
- CBaseController
- CWidget
- CFilterWidget implements IFilter
- COutputProcessor
- CMarkdown
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/widgets/CMarkdown.php
public
|
#
processOutput( string $output )
Processes the captured output. This method converts the content in markdown
syntax to HTML code. If |
public
string
|
#
transform( string $output )
Converts the content in markdown syntax to HTML code. This method uses |
public
|
|
public static
|
|
public
|
#
getMarkdownParser( )
Returns the markdown parser instance. This method calls |
protected
|
#
createMarkdownParser( )
Creates a markdown parser. By default, this method creates a |
init(),
onProcessOutput(),
run()
|
__construct(),
filter(),
getIsFilter()
|
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
public
mixed
|
$cssFile |
|
#
the CSS file used for the widget. Defaults to null, meaning using the default CSS file included together with the widget. If false, no CSS file will be used. Otherwise, the specified CSS file will be included when using this widget. |
public
boolean
|
$purifyOutput | false |
#
whether to use |
$stopAction
|
$actionPrefix,
$skin
|
public
|
$markdownParser |
#
The parser instance. |
$isFilter
|
$controller,
$id,
$owner,
$viewPath
|