No commit activity in last 3 years
No release in over 3 years
Liquid tag for pre-processing Prism.js highlights
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

~> 2.7
>= 3.7, < 5.0
>= 0
 Project Readme

Jekyll::PrismCompileBlock

Liquid tag for pre-processing Prism.js highlights

{% prismc javascript %}
var gem = "jekyll-prismjs-compile";

console.log(gem);
{% endprismc %}

For more information please check this blog post

Installation

Add this line to your application's Gemfile:

 group :jekyll_plugins do
   gem "jekyll-prismjs-compile"
 end

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-prismjs-compile

Then add the following to your site's _config.yml:

plugins:
  - jekyll-prismjs-compile

Please check documentation for more information on installation.

Usage

Use the tag as follows in your Jekyll pages, posts and collections:

{% prismc javascript %}
var gem = "jekyll-prismjs-compile";

console.log("gem");
{% endprismc %}

Make sure that you have the prism css included:

<link href="prism.css" rel="stylesheet" type="text/css">

💡 You don't have to include prism.js