You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @link http://www.yiiframework.com/
|
|
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
|
|
* @license http://www.yiiframework.com/license/
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace yii\helpers;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Markdown provides an ability to transform markdown into HTML.
|
|
|
|
*
|
|
|
|
* Basic usage is the following:
|
|
|
|
*
|
|
|
|
* ```php
|
|
|
|
* $myHtml = Markdown::process($myText); // use original markdown flavor
|
|
|
|
* $myHtml = Markdown::process($myText, 'gfm'); // use github flavored markdown
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* You can configure multiple flavors using the [[$flavors]] property.
|
|
|
|
*
|
|
|
|
* For more details please refer to the [Markdown library documentation](https://github.com/cebe/markdown#readme).
|
|
|
|
*
|
|
|
|
* @author Carsten Brandt <mail@cebe.cc>
|
|
|
|
* @since 2.0
|
|
|
|
*/
|
|
|
|
class Markdown extends BaseMarkdown
|
|
|
|
{
|
|
|
|
}
|