diff options
author | Greg Denehy | 2017-04-30 17:42:16 +0930 |
---|---|---|
committer | Greg Denehy | 2017-04-30 17:42:16 +0930 |
commit | f8bc6791827b7a291081a32ef3d86f5e23d186e7 (patch) | |
tree | 87b004b3f1b0575757de6c42bace8f5330926ae0 /test/test-markdown-options.js | |
parent | 40a46e1c0c7836bdc26d25993a5c785be82e9973 (diff) | |
parent | 360bc940062711db9b8020ce4e848f6c37014481 (diff) |
Merge branch 'dev' into plugin-key-bindings
Diffstat (limited to 'test/test-markdown-options.js')
-rw-r--r-- | test/test-markdown-options.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/test-markdown-options.js b/test/test-markdown-options.js new file mode 100644 index 0000000..3ae1350 --- /dev/null +++ b/test/test-markdown-options.js @@ -0,0 +1,26 @@ +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 + } +}); |