Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<CommonMark\Interfaces\IVisitable::acceptCommonMark\Parser::__construct>
^CommonMarkLast updated: Mon, 26 Oct 2026

The CommonMark\Parser class

(cmark >= 1.0.0)

Introduction

Provides an incremental parser as an alternative to the simple Parsing API function

Class synopsis

final class CommonMark\Parser {
/* Constructor */
public function __construct(int $options = ?)
/* Methods */
public function parse(string $buffer): void
public function finish(): CommonMark\Node
}

Table of Contents


<CommonMark\Interfaces\IVisitable::acceptCommonMark\Parser::__construct>
^CommonMarkLast updated: Mon, 26 Oct 2026