PHP Класс kartik\markdown\Markdown

С версии: 1.0
Автор: Kartik Visweswaran ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$markdown Michelf\MarkdownExtra

Открытые методы

Метод Описание
convert ( string $content, array $config = [], integer $smartyMode = self::SMARTYPANTS_ATTR_LONG_EM_DASH_SHORT_EN ) : string Converts markdown into HTML
customProcess ( string $content, array $config = [] ) : string Custom conversion of patterns
process ( string $content, array $config = [] ) : string Converts markdown into HTML

Описание методов

convert() публичный статический Метод

Converts markdown into HTML
public static convert ( string $content, array $config = [], integer $smartyMode = self::SMARTYPANTS_ATTR_LONG_EM_DASH_SHORT_EN ) : string
$content string
$config array . Options to configure MarkdownExtra and smarty - markdown: array for MarkdownExtra configuration parameters - smarty: array for SmartyPantsTypographer configuration parameters - custom: array for Custom configuration parameters
$smartyMode integer the SmartyPantsTypographer processing mode
Результат string

customProcess() публичный статический Метод

Custom conversion of patterns
public static customProcess ( string $content, array $config = [] ) : string
$content string
$config array . List of key value pairs to find and replace
Результат string

process() публичный статический Метод

Converts markdown into HTML
public static process ( string $content, array $config = [] ) : string
$content string
$config array
Результат string

Описание свойств

$markdown защищенное статическое свойство

protected static MarkdownExtra,Michelf $markdown
Результат Michelf\MarkdownExtra