mirror of
https://github.com/medialab-prado/poblacion-dirigida.git
synced 2024-12-26 18:01:22 +01:00
26 lines
586 B
JavaScript
26 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
|
|
}
|
|
});
|