HenrikJoreteg/emoji-images

can emoji ignore <code> and <pre> tags

Closed this issue · 2 comments

without a huge performance hit?
Thanks

I feel like it's a bit out of scope for what this is intended for which is usually taking a string from user input, not existing HTML, and running it through this. So, I don't feel like the assumption that you don't want it to do anything in a <code> tag should be made in this core module. If it's something you need for your project, I would say just fork this repo and add it there.

Thanks for the suggestion, though.

The annoying part is that there's no easy way to select code "ouside" of <code><pre> blocks.