summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--src/htmlgen.cpp7
-rw-r--r--templates/html/header.html2
-rw-r--r--templates/html/htmlbase.tpl2
3 files changed, 5 insertions, 6 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";
diff --git a/templates/html/header.html b/templates/html/header.html
index 628b61e..8db982e 100644
--- a/templates/html/header.html
+++ b/templates/html/header.html
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen $doxygenversion"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
diff --git a/templates/html/htmlbase.tpl b/templates/html/htmlbase.tpl
index 6727da0..8343af9 100644
--- a/templates/html/htmlbase.tpl
+++ b/templates/html/htmlbase.tpl
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen {{ doxygen.version }}"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>{% if config.PROJECT_NAME %}{{ config.PROJECT_NAME }}: {% endif %}{{ page.title }}</title>