Changes:
- Fix: Support for optional attributes on tags.
- The API remains fully backward-compatible.
Note: Caution if your HTML source is using tags with attributes.
Details:
Previously, tags other than <a> that contained attributes were not converted correctly. For example, <li class="menu-item"> was treated as inline text rather than a list item on a new line. Similarly, other tags with attributes (such as <h[1-6]> or <p>) were converted as inline text instead of being followed by a newline.