Hello,
I'm using mathjax-full npm module to convert latex expression into image. When I try to convert this latex epression:
\begin{array}{|c|c|}\hline\textcolor{primary}{x}&\textcolor{secondary}{y}\\\hline \textcolor{primary}{-2}&\textcolor{secondary}{1}\\\hline \textcolor{primary}{-1}&\textcolor{secondary}{\frac{1}{2}}\\\hline \textcolor{primary}{0}&\textcolor{secondary}{0}\\\hline \textcolor{primary}{1}&\textcolor{secondary}{-\frac{1}{2}}\\\hline \textcolor{primary}{2}&\textcolor{secondary}{-1}\\\hline\end{array}
whole exported table is filled with black. If I omit first \hline or last \hline image is created but I get missing line on top or at the end of the table.
What I do is to create a document:
mathjax.document('', {
InputJax: new TeX({packages: AllPackages}),
OutputJax: new SVG({fontCache: 'none'})
Then I call convert upon that created document with given latex from above.
After that I use liteAdaptor to generate innerHTML that creates SVG from the given latex expression.
Did anyone had the same issue with using \hline directive on MathJax?
Also I am using MathJax-Fill npm module version 3.1.2
Thnx for the help,
best regards
Sasa