[kramdown-users] Escaping in math
Matthias Vallentin
vallentin at icir.org
Fri Jun 10 16:47:15 EDT 2011
Consider this code snippet:
\$$S = \{x_1,\dots,x_n\}$$ where $$x_i\in U$$ and $$|S| = n$$
It will only compile correctly if I escape the backslash of the curly
braces inside the first math block; like this:
\$$S = \\{x_1,\dots,x_n\\}$$ where $$x_i\in U$$ and $$|S| = n$$
That is, it is necessary to change \{ to \\{. Is this intended behavior?
Intuitively, I assumed that everything inside the two dollar signs
should be compilable TeX. Or do I need to consider some extra escaping
rules?
Matthias
More information about the kramdown-users
mailing list