Skip to content

Commit 06842ea

Browse files
committed
Add inline mode support for MathJax
1 parent 645d4ba commit 06842ea

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

wagtail_polymath/static/wagtail_polymath/js/polymath-widget-mathjax.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
MathJax.Hub.Config({
2+
tex2jax: {
3+
inlineMath: [ ["$", "$"] ],
4+
displayMath: [ ["$$", "$$"] ],
5+
processEscapes: true
6+
}
7+
});
8+
19
// Update the preview area on input. Lifted directly from mathjax website examples
210
class Preview {
311

0 commit comments

Comments
 (0)