Major Changes
-
#171
c561739Thanks @rexxars! - Require Node.js 22.12 or later, and drop the legacymainandmodulefieldsThe package has been ESM-only for a while, but still carried
mainandmoduleentry points for
resolvers that predateexports. Those are gone, so the package resolves throughexportsonly. -
#171
c561739Thanks @rexxars! -nestLists()now nests every list as deeply as itslevelsays it isList items can start at a level deeper than 1, and can skip any number of levels at a time.
nestLists()previously ignored both, so a level 3 item could end up as a list nested only one
level deep, and items that later returned to a shallower level could fail to rejoin the list they
belonged to and be emitted as a separate sibling list instead.The levels that were never authored are now generated, so nesting depth always matches
level.
A generated list holds an empty list item inhtmlmode, since HTML can only nest a list inside a
list item, and holds nothing but the deeper list indirectmode.This changes the output of
nestLists()for any input where a list starts deeper than level 1 or
skips a level, and therefore changes the rendered output of anything built on it.