eleventy-plugin-syntaxhighlight v2.0.0
Eleventy is a simpler Static Site Generator! This is a Prism.js syntax highlighter plugin for Eleventy!
Major Version Breaking Changes
- Moves from using
<div class="highlight">
(display: block
styling) to using semantic HTML elementsins
,del
, andmark
(which aredisplay: inline
elements) which have default browser styling associated with them. Check out the default line highlighting CSS sample in the README. Issues: #6, #7. Thanks @mathiasbynens for this update!
Changelog
- Adds a Nunjucks syntax highlighter shortcode
{% highlight "js" %}
- Use only some of the plugin pack (#2)
- Customize Prism with the direct access to the Prism instance in the
options.init
callback (#4) - Bug fix: empty new lines were not rendering correctly (#5) Thanks @mathiasbynens!
Milestone
Dependency Semver Major Version Updates
- None
Links
⭐️ Support Eleventy by starring us on GitHub! This will increase our project’s visibility on staticgen.com, a big giant list of static site generators.
🐦 Follow us on Twitter @eleven_ty!