Website/slides/talks/reveal.js-3.5.0/test/test-markdown-options.js
Oliver Kennedy ee650b8dd9 reorg + new talk mats
- Added reveal.js v3.5
- One canonical copy of the JITD and Mimir talks for the tour
- Migrated JITD talk to reveal v3.5
2017-09-23 14:34:02 -04:00

27 lines
586 B
JavaScript

Reveal.addEventListener( 'ready', function() {
QUnit.module( 'Markdown' );
test( 'Options are set', function() {
strictEqual( marked.defaults.smartypants, true );
});
test( 'Smart quotes are activated', function() {
var text = document.querySelector( '.reveal .slides>section>p' ).textContent;
strictEqual( /['"]/.test( text ), false );
strictEqual( /[“”‘’]/.test( text ), true );
});
} );
Reveal.initialize({
dependencies: [
{ src: '../plugin/markdown/marked.js' },
{ src: '../plugin/markdown/markdown.js' },
],
markdown: {
smartypants: true
}
});