PolymerElements / prism-element

Prism-based syntax highlighting
17 stars 19 forks source link

Double Highlight #3

Closed mbleigh closed 8 years ago

mbleigh commented 9 years ago

This element is designed to be a "drop in once on the page" affair, but sometimes that's not going to be possible (for example, when a third-party element makes use of it that you're including on your page). Right now, this can cause a double-highlight where the highlight HTML is then highlighted.

I'd propose some kind of mechanism (shouldn't be too hard) that marks a highlight as already having happened and therefore not allowing other listening prism-highlighter elements to double up.

notwaldorf commented 9 years ago

AJ can you please take a look? Thanks! :balloon:

notwaldorf commented 8 years ago

Is there any interest from the community to help with this?

43081j commented 8 years ago

@notwaldorf maybe #18 is enough for this, do take a look if you get chance. thanks!