CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Project: KOB1
Views: 16973
1
Reveal.addEventListener( 'ready', function() {
2
3
QUnit.module( 'Markdown' );
4
5
test( 'Options are set', function() {
6
strictEqual( marked.defaults.smartypants, true );
7
});
8
9
test( 'Smart quotes are activated', function() {
10
var text = document.querySelector( '.reveal .slides>section>p' ).textContent;
11
12
strictEqual( /['"]/.test( text ), false );
13
strictEqual( /[“”‘’]/.test( text ), true );
14
});
15
16
} );
17
18
Reveal.initialize({
19
dependencies: [
20
{ src: '../plugin/markdown/marked.js' },
21
{ src: '../plugin/markdown/markdown.js' },
22
],
23
markdown: {
24
smartypants: true
25
}
26
});
27
28