summaryrefslogtreecommitdiffhomepage
path: root/plugin/markdown/markdown.js
diff options
context:
space:
mode:
authorHakim El Hattab2016-06-22 09:20:24 +0200
committerHakim El Hattab2016-06-22 09:20:24 +0200
commit8d7ff10ce3ec2e2190a63769323ea2cf6d5f7e9f (patch)
tree385382188bb2418aae903ec68257c1c4ef5e6280 /plugin/markdown/markdown.js
parent8d4cb810d641be085aee365ad83cd59b7c974cfd (diff)
parent16ebf2a783724527faac2036bc2f971df8dea0a5 (diff)
Merge branch 'bug/markdownSetOptions' of https://github.com/snowyu/reveal.js into dev
Diffstat (limited to 'plugin/markdown/markdown.js')
-rwxr-xr-xplugin/markdown/markdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index ad596bf..124aa75 100755
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -23,8 +23,8 @@
if( typeof hljs !== 'undefined' ) {
marked.setOptions({
- highlight: function( lang, code ) {
- return hljs.highlightAuto( lang, code ).value;
+ highlight: function( code, lang ) {
+ return hljs.highlightAuto( code, [lang] ).value;
}
});
}