SamyPesse / draft-js-prism

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

Support arbitrary levels of tokens (e.g. "markup" generates these) #17

Closed benjeffery closed 7 years ago

benjeffery commented 7 years ago

14 and #11 fix some issues with nested tokens, but these didn't support the output of "markup". To really deal with the output from prism you need to recurse through the child tokens.

mxstbr commented 7 years ago

Hey, I've taken over this repo from Samy. Are you still interested in moving this PR forward? If so, how does it compare to #18?

mxstbr commented 7 years ago

I've tested this patch and it worked beautifully, so I'm going to merge this in and release it in a new version.

Thanks so much for contributing @benjeffery!

benjeffery commented 7 years ago

Thankyou for taking over maintenance of the package!