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)SU(3), Fundamental Representation = Adjoint Representation Rank-3 Symmetric Tensor Representation \begin{svg} svg xmlns=http://www.w3.org/2000/svg width=30 height=16 viewBox=0 0 30 16 g/rect /svg \end{svg}\includegraphics[width=2em]{young1} \otimes \begin{svg} svg xmlns=http://www.w3.org/2000/svg width=20 height=16 viewBox=0 0 20 16 descFundamental Representation/desc g /svg \end{svg}\includegraphics[width=1em]{young2} = \begin{svg} svg xmlns=http://www.w3.org/2000/svg width=30 height=26 viewBox=0 0 30 26 descAdjoint Representation/desc /g /svg \end{svg}\includegraphics[width=2em]{young3} \oplus \begin{svg} svg xmlns=http://www.w3.org/2000/svg width=40 height=16 viewBox=0 0 40 16 descRank-3 Symmetric Tensor Representation/desc g transform=translate(5,5) fill=#FCC stroke=#000 stroke-width=2 rect width=10 height=10/ rect width=10 height=10 x=10/ rect width=10 height=10 x=20/ /g /svg \end{svg}\includegraphics[width=3em]{young4}.

*** 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}$.