SamyPesse / draft-js-prism

Code highlighting for DraftJS using Prism
http://samypesse.github.io/draft-js-prism/
Apache License 2.0
274 stars 36 forks source link

Allow the decorator to work if there are nested tokens #14

Closed danielfarrell closed 7 years ago

danielfarrell commented 7 years ago

A token can have other tokens in it's content. This does not do the parsing of them, but it does make the length of the content be correct.

mxstbr commented 7 years ago

Going to close this out in favor of either #17 or #11 which fix the issue completely, thanks so much for taking the time to submit this PR though!