1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-10 16:47:28 +02:00

Merge branch 'bug/markdownSetOptions' of https://github.com/snowyu/reveal.js into dev

This commit is contained in:
Hakim El Hattab
2016-06-22 09:20:24 +02:00
5 changed files with 68 additions and 3 deletions

View File

@@ -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;
}
});
}