summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-highlight/src/getLanguage.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2017-02-19 19:19:42 +0100
committerSamy Pessé <samypesse@gmail.com>2017-02-19 19:19:42 +0100
commit3445252c1d539d1838e0cbc22119b4aef709cee8 (patch)
treea9b63f6d2cb9e19f50b0eb9a0d4021f9633a2d0d /packages/gitbook-plugin-highlight/src/getLanguage.js
parent28f34c3fa82ff4ef32e52c781d086b192c8cbf5b (diff)
downloadgitbook-3445252c1d539d1838e0cbc22119b4aef709cee8.zip
gitbook-3445252c1d539d1838e0cbc22119b4aef709cee8.tar.gz
gitbook-3445252c1d539d1838e0cbc22119b4aef709cee8.tar.bz2
Add "theme" option to default syntax highlighting
Diffstat (limited to 'packages/gitbook-plugin-highlight/src/getLanguage.js')
-rw-r--r--packages/gitbook-plugin-highlight/src/getLanguage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-plugin-highlight/src/getLanguage.js b/packages/gitbook-plugin-highlight/src/getLanguage.js
index 7a1bf8e..6a1234f 100644
--- a/packages/gitbook-plugin-highlight/src/getLanguage.js
+++ b/packages/gitbook-plugin-highlight/src/getLanguage.js
@@ -11,7 +11,7 @@ const ALIASES = require('./ALIASES');
*/
function getLanguage(className) {
const lang = List(className.split(' '))
- .map(function(cl) {
+ .map((cl) => {
// Markdown
if (cl.search('lang-') === 0) {
return cl.slice('lang-'.length);
@@ -24,7 +24,7 @@ function getLanguage(className) {
return null;
})
- .find(function(cl) {
+ .find((cl) => {
return Boolean(cl);
});