PHP 클래스 VersionPress\Utils\Markdown

파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 메소드들

메소드 설명
transform ( $text ) : string Transforms Markdown to HTML using {@link https://michelf.ca/projects/php-markdown/ PHP Markdown}.

메소드 상세

transform() 공개 정적인 메소드

One special feature is single line detection - if the passed $text is single line, this function removes the wrapping

element which PHPMarkdown automatically adds.

public static transform ( $text ) : string
$text
리턴 string HTML