REXML PENDING - This tests that invalid SVG within LaTeX gets corrected and still output. I'm not sure why it should do that. Pending because Nokogiri will handle the tagsoup but REXML won't. TODO: The LaTeX output does not look correct here! *** Parameters: *** require 'maruku/ext/math'; {:html_math_engine => 'itex2mml'} *** Markdown input: *** In $SU(3)$, $\begin{svg} \end{svg}\includegraphics[width=2em]{young1} \otimes \begin{svg} Fundamental Representation \end{svg}\includegraphics[width=1em]{young2} = \begin{svg} Adjoint Representation \end{svg}\includegraphics[width=2em]{young3} \oplus \begin{svg} Rank-3 Symmetric Tensor Representation \end{svg}\includegraphics[width=3em]{young4}$. *** Output of inspect *** md_el(:document,[ md_par(["In ", md_el(:inline_math, [], {:math=>"SU(3)"}), ", ", md_el(:inline_math, [], {:math=>"\\begin{svg}\n\n \n\n\\end{svg}\\includegraphics[width=2em]{young1}\n \\otimes\n\\begin{svg}\n\n Fundamental Representation\n \n\n\\end{svg}\\includegraphics[width=1em]{young2}\n =\n\\begin{svg}\n\n Adjoint Representation\n \n\n\\end{svg}\\includegraphics[width=2em]{young3}\n \\oplus\n\\begin{svg}\n\n Rank-3 Symmetric Tensor Representation\n \n \n \n \n \n\n\\end{svg}\\includegraphics[width=3em]{young4}"}), "." ]) ],{},[]) *** Output of to_html ***

In SU(3), Fundamental Representation = Adjoint Representation Rank-3 Symmetric Tensor Representation .

*** Output of to_latex *** In $SU(3)$, $ \includegraphics[width=2em]{young1} \otimes \includegraphics[width=1em]{young2} = \includegraphics[width=2em]{young3} \oplus \includegraphics[width=3em]{young4}$.