Skip to content

autolink-0.9.0

Compare
Choose a tag to compare
@robinst robinst released this 18 Jun 06:32
· 51 commits to main since this release

Added

  • Add extractSpans method that also returns the text pieces of the
    input before, between and after links. This makes it more convenient
    to write code that transforms the whole input text without having to
    manually keep track of indexes.

Changed

  • Deprecated Autolink.renderLinks and LinkRenderer, see added (#21)
  • Stop URLs when encountering ". This is consistent with RFC 3986, and
    it seems unlikely that a user would have an unescaped " in an URL
    anyway, as browsers escape it when copying an URL with it. (#21)