CommonMark\Parse

(cmark >= 1.0.0)

CommonMark\ParseParsing

说明

CommonMark\Parse ( string $content [, int $options ] ) : CommonMark\Node

Shall parse content

参数

content

markdown string

options

A mask of:

CommonMark\Parser\Normal (int)
CommonMark\Parser\Normalize (int)
CommonMark\Parser\ValidateUTF8 (int)
CommonMark\Parser\Smart (int)

返回值

Shall return root CommonMark\Node