summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-23 20:27:04 (GMT)
committerGitHub <noreply@github.com>2021-05-23 20:27:04 (GMT)
commit8bd1b49051ee6c69d1216b952bf6e69e4f2987c1 (patch)
treec5d42a6f96a17782fcc67364c4adf1e977ff0823 /src
parent89e343373294946494ee6853286a935d9fd3df40 (diff)
parent244cb40ef034a15b381151d2fc67f957efca34d8 (diff)
downloadDoxygen-8bd1b49051ee6c69d1216b952bf6e69e4f2987c1.zip
Doxygen-8bd1b49051ee6c69d1216b952bf6e69e4f2987c1.tar.gz
Doxygen-8bd1b49051ee6c69d1216b952bf6e69e4f2987c1.tar.bz2
Merge pull request #8554 from albert-github/feature/bug_mathjax_v3_ref
Extra settings for MathJax V3
Diffstat (limited to 'src')
-rw-r--r--src/htmlgen.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index ee9560a..c8c8021 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -449,6 +449,7 @@ static QCString substituteHtmlKeywords(const QCString &str,
if (mathJaxVersion == "MathJax_3")
{
+ mathJaxJs += "<script src=\"https://polyfill.io/v3/polyfill.min.js?features=es6\"></script>\n";
mathJaxJs += "<script>\n"
" window.MathJax = {\n"
" options: {\n"
@@ -459,7 +460,8 @@ static QCString substituteHtmlKeywords(const QCString &str,
if (!mathJaxExtensions.empty() || !g_latex_macro.isEmpty())
{
mathJaxJs+= " tex: {\n"
- " packages: ['base'";
+ " macros: {},\n"
+ " packages: ['base','configmacros'";
if (!g_latex_macro.isEmpty())
{
mathJaxJs+= ",'newcommand'";
@@ -469,9 +471,6 @@ static QCString substituteHtmlKeywords(const QCString &str,
mathJaxJs+= ",'"+QCString(s.c_str())+"'";
}
mathJaxJs += "]\n"
- " },\n"
- " tex: {\n"
- " macros: {}\n"
" }\n";
}
mathJaxJs += " };\n";