Releases: gaearon/gitbook-plugin-prism
Releases · gaearon/gitbook-plugin-prism
v2.4.0
v2.2.1
v2.2.0
v2.1.0
v2.0.3
v2.0.2
v2.0.1
- 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
- Fixed: closes #10. Custom themes were not properly applied to the
<code>blocks because of a missing class prefixlangague-*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
After Fix
v1.1.0
- Feature: deprecate
prism-languagesin favor ofrequire('prismjs').languages. Automatically load syntax definitions fromprismjs/componentsfolder. - 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 toprismjs/themes/prism.css.
"pluginsConfig": {
"prism": {
"css": [
"prismjs/themes/prism-solarizedlight.css"
]
}
}
