diff --git a/src/index.js b/src/index.js index 682d634..279d28a 100644 --- a/src/index.js +++ b/src/index.js @@ -68,3 +68,9 @@ module.exports = GitBook.createPlugin({ dispatch(Components.registerComponent(MathJaxBlock, { role: 'block:math' })); } }); + +require(["gitbook", "jQuery"], function(gitbook, $) { + gitbook.events.bind("page.change", function() { + MathJax.Hub.Queue(["Typeset",MathJax.Hub]); + }); +} \ No newline at end of file