Skip to content

References ​

php
final class KMark\References

The definitions of the reference links, written as "[label]: url "title"" on a line of their own.

Source: src/References.php

Methods ​

extract() ​

php
public function extract(array $lines): array

Reads the definitions and gives the lines without them. A line in a fenced code block is not a definition.

Returns list<string>

find() ​

php
public function find(string $label): array

Returns array{string, string}|null the URL and the title

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