PHP 클래스 kartik\markdown\Markdown

부터: 1.0
저자: Kartik Visweswaran ([email protected])
파일 보기 프로젝트 열기: kartik-v/yii2-markdown 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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