- Implement #14: Add
stripTags
option. - Tiny Unicode fix.
- Treat
<audio>
and<video>
as unbreakable elements.
- Implement #12: Improve support for clipping HTML tables.
- Use TypeScript primarily to ease Deno support.
- Assume
Array.prototype.includes()
is available. - Upgraded development dependencies.
- Add TypeScript definition.
- Fix #7: Fix two edge cases:
- Incorrect result when
maxLength
is less than the size of the indicator. - Incorrect indicator when the remaining HTML contains a mix of block and inline elements.
- Incorrect result when
- Tiny optimization when processing HTML tags.
- Fix #4: Correct clip length when using no indicator (indicator is an empty string).
- Fix #5: Support ampersands that do not start an HTML character reference.
- Fix building in React Native.
- Improved tag handling and newline counting (#2, thanks to @churchs19).