Skip to content

BlockContext ​

php
final readonly class KMark\Block\BlockContext

What a rule needs to read a block: the parsers of the blocks and of the text, and whether the paragraphs are written without <p> (in a tight list).

Source: src/Block/BlockContext.php

Methods ​

__construct() ​

php
public function __construct(BlockParser $blocks, InlineParser $inline, bool $tight = false)

Documentation of 2.0.0 , built from f573e5f on 2.0.0 by pipeline #37507527063 on 2026-10-06.