Appearance
BlockParser
php
final readonly class KMark\Block\BlockParserReads the lines of a text block by block, with the first kind of block that matches, and gives the HTML.
Source: src/Block/BlockParser.php
Methods
__construct()
php
public function __construct(InlineParser $inlineParser, Options $options = new Options())blocks()
php
public function blocks(array $lines, bool $tight = false): arrayThe HTML of each block.
Returns list<string>
parse()
php
public function parse(array $lines, bool $tight = false): string