Skip to content

v2.0.0

Choose a tag to compare

@bhsd-harry bhsd-harry released this 01 Nov 02:13
· 12 commits to main since this release

2026-11-01

Added

  • TableToken#getEntries that returns a regular 2D array of TdToken for all table cells, resolving the rowspan and colspan attributes
  • Token#plainText
  • Token#toHtml now takes an optional object parameter to include/exclude certain elements, including the redirect link, the table of contents (TOC) and category links
  • New category of linting errors: duplicate names of <indicator>

Fixed

  • Unclosed <ul> in the category links produced by Token#toHtml
  • Lists and tables inside <indicator> extension tags

Changed

  • Parser.parse now builds list items by default
  • ListRangeToken#print now wraps its content in an unstyled <span class="wpb-list-range">

Removed

  • Support for Node.js 20

Migration Guide

  • The old behavior of Parser.parse can be restored by specifying the parsing stage parameter as 'converter' (or 'list' if language conversion is disabled)