You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For forcing ^ to be preserved in LaTeX from markdown, it would require raw code attributes. i.e [m^{=latex}3]{.si} but we would loose it in HTML conversion.
And if we consider the content of [content]{.cmd} to be raw LaTeX for this extension, we loose the benefit of being able to have markdown syntax in the text. Not sure it is good. We could support an option in the span syntax to consider the content as raw maybe... 🤔
So this is a special case with a special package where some specific LaTeX character is needed to be preserve.
I think the long term solution to this conundrum is likely to actually implement an extension that provides nice unit support across formats (like siunitx does for LaTeX). The latex environment package works best when the contents of the environment could be reasonably rendered in other formats as text and I think in this case that isn't likely to be true.
For now, I suppose the use of raw LaTeX might be the preferred solution until someone implements a nice port of siunitx as a Quarto extension...
When using commands \si{} in siunitx, content
.
\si{\meter\cubed}, [\meter\cubed]{.si}, \si{m^3}, [m^3]{.si}
produedThe last one is different from the first three. It seems somewhere did not convert the
^3
correctly.The text was updated successfully, but these errors were encountered: