markdown-it / linkify-it

Links recognition library with full unicode support
http://markdown-it.github.io/linkify-it/
MIT License
655 stars 63 forks source link

Added UMD module format #99

Closed mexvod closed 2 years ago

mexvod commented 2 years ago

Hi. How do you look at adding UMD module support format (for AMD or script-tag loading)? To support legacy projects (where no web application bundles exist). Also, such a module can be connected through the CDN or unpkg. I made a setting for building the UMD module and minimizing it. For this you need to execute the command 'npm run-script build'.

puzrin commented 2 years ago

I don't like idea to add build step just for legacy projects.

moos commented 2 years ago

This would have been useful! Please reconsider having a dist version for easier consumption. Would then also be available on various CDNs, e.g. ,https://www.jsdelivr.com/package/npm/linkify-it