1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Fix MathML example

`allowScriptedContent` is required for MathJax to run
This commit is contained in:
John Factotum 2022-11-15 18:29:38 +08:00 committed by GitHub
parent 0963efe979
commit 5eaef9c280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,8 @@
var rendition = book.renderTo("viewer", {
width: "100%",
height: 600,
spread: "always"
spread: "always",
allowScriptedContent: true
});
rendition.display(currentSectionIndex);