v1.42.0
2026-05-30
Added
- HTML conversion with a table of contents (TOC)
- HTML conversion of
<ref>and<references>extension tags without support for sub-referencing AstNode#is,AstElement#closest,AstElement#matches,AstElement#querySelector,AstElement#querySelectorAllandAstElement#getElementByTypescan now infer the return type if the selector argument is a single token type
Fixed
- Lowered severity of a lonely
]following a free external link and some plain text - Update PMID magic link URLs
AttributeToken#getValueshould always return a string and normalize whitespace characters to a single space- Wikitext lists should not be parsed inside
<pre format="wikitext">tags - The second anonymous parameter of the parser function
#tagshould not be trimmed
Changed
AstRange#closestmay now return the common ancestor container itself if it matches the selector