Browse Source

update math example to use 4.0 plugin syntax

Hakim El Hattab 5 years ago
parent
commit
f014952673
1 changed files with 2 additions and 3 deletions
  1. 2 3
      examples/math.html

+ 2 - 3
examples/math.html

@@ -176,6 +176,7 @@
 		</div>
 		</div>
 
 
 		<script src="../dist/reveal.js"></script>
 		<script src="../dist/reveal.js"></script>
+		<script src="../plugin/math/math.js"></script>
 		<script>
 		<script>
 			Reveal.initialize({
 			Reveal.initialize({
 				history: true,
 				history: true,
@@ -192,9 +193,7 @@
 					}
 					}
 				},
 				},
 
 
-				dependencies: [
-					{ src: '../plugin/math/math.js', async: true }
-				]
+				plugins: [ RevealMath ]
 			});
 			});
 		</script>
 		</script>