Merge branch 'bug/markdownSetOptions' of https://github.com/snowyu/reveal.js into dev
This commit is contained in:
commit
8d7ff10ce3
5 changed files with 68 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue