Reveal.js: Highlight doesn't work with markdown-only

Created on 11 May 2015  路  5Comments  路  Source: hakimel/reveal.js

It seems highlight doesn't work if using only markdown slides because of this:

condition: function() { return !!document.querySelector( 'pre code' ); },

in the default highlight plugin condition.

I've removed it and everything works as expected

markdown

Most helpful comment

if you want to fix it, just remove the condition of highlight plugin:

{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },

I'll submit a PR to make this a default

All 5 comments

Same here.

same problem

I have the same problem. Here is a snippet to simulate this:

``````