Skip to content

InlineParser ​

php
final readonly class KMark\Inline\InlineParser

Turns the text of a block into HTML: code spans, links, images, emphasis, line breaks, bare URLs.

The pieces that must not be read again are put aside in a stash as soon as they are made, and written back at the end.

Source: src/Inline/InlineParser.php

Methods ​

__construct() ​

php
public function __construct(Options $options = new Options(), References $references = new References())

render() ​

php
public function render(string $text): string

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