What was broken A list starting at zero began at one
<ol start="0"> is valid HTML and CommonMark supports lists starting at zero, but the converter numbered such a list from 1. The check built on intval() treated 0 the same as a missing attribute, because in PHP both are falsy.
How we fixed it is_numeric instead of a truthiness check
ListItemConverter now checks the attribute with is_numeric(), which is false for an empty string and true for "0". A list from zero gives 0. and 1., and other values such as start="120" work as before.
#277
What was broken A link with & did not become an autolink
With use_autolinks, the converter writes a link as <address> when its text matches the href. The text goes through htmlspecialchars, though, so & became &, the comparison failed and the output was a plain link with & in its text.
How we fixed it Comparing after undoing &
Before comparing, we undo only & back to &, so https://example.com/?a=1&b=2 gives an autolink. Other encoding differences, such as %2F against /, still give a plain link, and a test also covers an address with < and > entities.
#281
What was broken An empty line at the top of a code block
The HTML spec says a newline right after the <pre> start tag is dropped, but the libxml parser keeps it. The fenced code block in Markdown got an extra empty first line as a result.
How we fixed it One leading newline dropped
PreformattedConverter strips one leading newline, CRLF included, before building the code block. It does so only there and not in getContent(), because a <pre> kept as raw HTML loses that newline when rendered. We also updated old testPreformat expectations that had pinned the bug.
#278