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:
19
test/test-markdown-external.js
Normal file
19
test/test-markdown-external.js
Normal 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();
|
||||
|
Reference in New Issue
Block a user