markdown-it / markdown-it-emoji

Emoji syntax plugin for markdown-it markdown parser
https://markdown-it.github.io/
MIT License
727 stars 167 forks source link

Add variant without bundled definitions #41

Closed ErikMichelson closed 4 years ago

ErikMichelson commented 4 years ago

Currently, one can choose between the "full" emoji-set by using index.js and the light emoji-set by using light.js. In case of providing custom definitions, you might want to keep the bundle-size low by not importing the unused light.json or full.json data-sets.

I therefore propose the following: Add a new file "bare.js" (or another name) that is similar to index.js or light.js but does not import the json data-sets.

puzrin commented 4 years ago

IMO it's not a big deal to copypaste light.js & customize, but if anyone wish to do PR, it will be accepted.