Skip to content

Releases: gaearon/gitbook-plugin-prism

v2.4.0

26 Jul 14:46
Compare
Choose a tag to compare

b685c70 upgrade prismjs to 1.15.0+

v2.2.1

10 Jul 00:01
Compare
Choose a tag to compare
  • Fixed: #24 Compatibility with Gitbook 2.x.x

v2.2.0

10 Mar 00:02
Compare
Choose a tag to compare
  • Improved: #21 Updgrade Prims.js to v1.6.0 to support GraphQL syntax

v2.1.0

31 Jan 04:54
Compare
Choose a tag to compare
  • Added: #19 Add sh alias to syntax mapping definition
  • Added: #20 Add option pluginsConfig.prism.lang to support custom syntax prefixes

v2.0.3

28 Jan 03:25
Compare
Choose a tag to compare
  • Fixed: #18 Correctly import syntax definitions that have dependencies

v2.0.2

08 Jan 21:28
Compare
Choose a tag to compare
  • Fixed: #14. Incorrect mapping for C# shortcut

v2.0.1

30 Nov 04:02
Compare
Choose a tag to compare
  • Fixed: #11. Themes were not properly applied to ebook formats. An example project using themes with mobi, pdf and epub formats can be found at gitbook-prism-example.
  • Fixed: Theme background color was being applied to inline <code> blocks.

v2.0.0

19 Nov 04:30
Compare
Choose a tag to compare
  • Fixed: closes #10. Custom themes were not properly applied to the <code> blocks because of a missing class prefix langague-* on the <pre> element.
  • Breaking: There are no breaking changes to the plugin's API. The fix above causes Prism to apply the correct background color to the <code> block which is different from previous versions.
Before Fix

image

After Fix

image

v1.1.0

03 Sep 01:48
Compare
Choose a tag to compare
  • Feature: deprecate prism-languages in favor of require('prismjs').languages. Automatically load syntax definitions from prismjs/components folder.
  • Improved: upgrade Prism.js to v1.5.1
  • Fixed: json syntax highlighting now uses native json highlighter instead of javascript
  • Fixed: closes #6. Ability to introduce custom styles for syntax highlighting in book.json. Defaults to prismjs/themes/prism.css.
"pluginsConfig": {  
  "prism": {
    "css": [
      "prismjs/themes/prism-solarizedlight.css"
    ]
  }
}

v1.0.0

05 Oct 09:25
Compare
Choose a tag to compare
  • Breaking change: we now require Gitbook >= 2.4.1
  • Breaking change: you need to change "plugins": ["prism"] to "plugins": ["prism", "-highlight"] to disable default highlighting
  • Feature: support for languages other than JavaScript