1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-09-01 02:32:54 +02:00

* [bug] the markdown plugin can not render highlight codes for marked.setOptions(highlight)

This commit is contained in:
Riceball LEE
2015-11-11 07:37:08 +00:00
parent 6952931451
commit 16ebf2a783
4 changed files with 67 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
Reveal.addEventListener( 'ready', function() {
QUnit.module( 'Markdown' );
test( 'Vertical separator', function() {
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
});
test( 'language highlighter', function() {
strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' );
strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' );
});
} );
Reveal.initialize();