diff options
author | Hakim El Hattab | 2016-06-22 09:20:24 +0200 |
---|---|---|
committer | Hakim El Hattab | 2016-06-22 09:20:24 +0200 |
commit | 8d7ff10ce3ec2e2190a63769323ea2cf6d5f7e9f (patch) | |
tree | 385382188bb2418aae903ec68257c1c4ef5e6280 /plugin/markdown/markdown.js | |
parent | 8d4cb810d641be085aee365ad83cd59b7c974cfd (diff) | |
parent | 16ebf2a783724527faac2036bc2f971df8dea0a5 (diff) |
Merge branch 'bug/markdownSetOptions' of https://github.com/snowyu/reveal.js into dev
Diffstat (limited to 'plugin/markdown/markdown.js')
-rwxr-xr-x | plugin/markdown/markdown.js | 4 |
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; } }); } |