summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-05-15 16:48:27 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-05-15 16:48:27 (GMT)
commit244cb40ef034a15b381151d2fc67f957efca34d8 (patch)
tree2019631bc677b28a3238cbc708240e82cf1e00a8 /src
parent378be4c7f3150e6440993e0bf07235b65fe44870 (diff)
downloadDoxygen-244cb40ef034a15b381151d2fc67f957efca34d8.zip
Doxygen-244cb40ef034a15b381151d2fc67f957efca34d8.tar.gz
Doxygen-244cb40ef034a15b381151d2fc67f957efca34d8.tar.bz2
Extra settings for MathJax V3
For support of the `\eqref` command (used in CGAL) in MathJax V3 a small change has to be made (for a rationale see the discussion on https://groups.google.com/g/mathjax-users/c/oS0yQLb5BMk)
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 cde7ef2..94d9056 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";