convert-links

The typical job of converting links in a raw string to the same string but with links detected and converted to HTML a.

Usage no npm install needed!

<script type="module">
  import convertLinks from 'https://cdn.skypack.dev/convert-links';
</script>

README

Convert links

The typical job of converting links in a raw string to the same string but with links detected and converted to HTML a.

For usage see test.js.
The second to the exported function is an array of classes you wish to be added to the a element.