Skip to content

Lists ​

php
final readonly class KMark\Block\Lists implements BlockRule

Bulleted and numbered lists, nested by indentation. A list is loose when a blank line separates its items or the blocks of an item: its text is then in paragraphs; otherwise the text is written without <p>.

Source: src/Block/Lists.php

Methods ​

__construct() ​

php
public function __construct(ItemReader $itemReader = new ItemReader())

match() ​

php
public function match(Lines $lines, BlockContext $blockContext): string

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