From e0abd45dc194f7ede2b460c6e9c2c303d4321bd7 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 24 Jan 2016 13:18:38 +0100 Subject: Solve display using MathJax for all websites --- displayformula.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'displayformula.php') diff --git a/displayformula.php b/displayformula.php index 788304b..58723f1 100644 --- a/displayformula.php +++ b/displayformula.php @@ -62,8 +62,15 @@ $text = format_text($texexp, FORMAT_MOODLE, $formatoptions); Formula additionalhtmlhead) && stripos($CFG->additionalhtmlhead, 'MathJax') !== false) { - echo $CFG->additionalhtmlhead; + // For website where Mathjax is enabled using additional HTML in head. + echo $CFG->additionalhtmlhead; +} else { + // For other website directly include MathJax. + echo ""; } ?> -- cgit v1.2.3