Skip to content
Snippets Groups Projects
Commit 1a9fef8a authored by srosse's avatar srosse
Browse files

OO-4746: reactivate broken LaTeX in exported Word document

parent a1a750e4
No related branches found
No related tags found
No related merge requests found
......@@ -1018,6 +1018,11 @@ public class OpenXMLDocument {
public List<Node> convertLaTeX(String latex) {
List<Node> mathEls = new ArrayList<>();
try {
// place the latex marker if needed
if(!latex.startsWith("\\(") && !latex.startsWith("\\[") && !latex.startsWith("$")) {
latex = "$" + latex + "$";
}
//convert latex -> mathml
String mathml = ConvertFromLatexToMathML.convertToMathML(latex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment