Closed addyosmani closed 10 years ago
cc @theefer in case you have a chance to look at the new version.
At the moment the one area I think still needs work is probably the visual accuracy of line-numbers and highlighting. There appear to be some upstream issues in Prism.js around them not having a valid line-height set for their themes that is now fixed in Prism master, but a release with the caveat that it's less broken than what was here before might still be useful to some people.
It's looking nice!
Thanks! Just thought up a few more additions to enable data-binding for the source and editor. Going to try getting those in next.
Cool, the input demo is slick :+1:
Release notes are out: https://github.com/addyosmani/prism-js/releases/tag/v0.1.0 :)
0.0.2 of the element was broken due to a version of Polymer being out of date. In addition, theming, line numbers and highlighting were also broken as the way stylesheet injection was handled has changed.
The element was also written prior to seed-element being around, so I've gone ahead and rewritten it adding in some new methods (thanks to @theefer for his help with style injection!), docs, more clear demos and explanations around what works in Chromium based browsers and what does not.
If you could review the new version and let me know if anything looks out of place I'd be more than happy to cut a new release soon:
Master: https://github.com/addyosmani/prism-js Component page: http://addyosmani.github.io/prism-js