summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-04-20 12:28:19 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-04-20 12:28:19 (GMT)
commitb95b4766c7107e9b3ff0969534fe54c131412249 (patch)
treebe30783533a9dc0955ab7697cd65921824a52de6 /src/markdown.cpp
parent98c67549bc3cd855873e0ef5eeab7c6410699d78 (diff)
downloadDoxygen-b95b4766c7107e9b3ff0969534fe54c131412249.zip
Doxygen-b95b4766c7107e9b3ff0969534fe54c131412249.tar.gz
Doxygen-b95b4766c7107e9b3ff0969534fe54c131412249.tar.bz2
Problems with some commands in MathJax
Especially with commands like `\f$\mbox{\LaTeX}\f$`MathJax has some problem as it is not, yet, able to use the commands `\raise` and `lower` inside the `\mbox` as used in this LaTeX command. Also switching in and out of math-mode doesn't work as the resulting code either doesn't work in MathJax or in LaTeX, hence the new command s `\f(` and `\f)`.
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 3de454b..5f2b8f6 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -305,6 +305,7 @@ static Alignment markersToAlignment(bool leftMarker,bool rightMarker)
// \code .. \endcode
// \msc .. \endmsc
// \f$..\f$
+// \f(..\f)
// \f[..\f]
// \f{..\f}
// \verbatim..\endverbatim
@@ -353,6 +354,10 @@ QCString Markdown::isBlockCommand(const char *data,int offset,int size)
{
return "f$";
}
+ else if (data[end]=='(')
+ {
+ return "f)";
+ }
else if (data[end]=='[')
{
return "f]";