- Allow arbitrary attributes for a tags but only keep
href
andtitle
attributes.
- Allow image and link urls starting with //
- Allow arbitrary attributes for image tags but only keep
src
,alt
andtitle
attributes.
- Update markdown-it to 5.0.0
- Added option imageClass
- Remove url-regex dependency
- Fix sanitizer freeze #3
- Use markdown-it 4
- Only run balance for HTML input
- Refactor sanitizer, should be now one of the last rules
- Added options for removing or escaping unbalanced/unknown tags
- Check url for allowed protocolls: http and https for images, http, https, ftp, mailto and xmpp for links
- Initial release