Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
This is due to the fact that the Markdown interpreter doesn't know about MathJaX. So it doesn't ignore stuff between dollars. Since it uses the backslash to escape special characters, it translates \{
to {
(and \\
to a single backslash, and similar for other things). Then MathJaX only sees {
which it interprets as a TeX group and so doesn't display the brace. One solution is to use \lbrace
and \rbrace
as voloch says. Another is to put the mathematics inside an HTML tag so that Markdown doesn't look at it. If the paragraph doesn't contain anything else that Markdown should look at, you can just put <p> ... </p>
around it.
(And, of course, Markdown demonstrated my point by escaping the angle brackets in those tags!)
Or you could use backticks, but perhaps Andrew will scold me for bad practice.
Yes!
Anton now says that backticks are bad practice since the behaviour will not be stable under changes to the software. The fact that Markdown doesn't look inside block-level tags is part of the specification of Markdown so anything that pretends to be Markdown has to accept that. But Markdown does look inside backticks and what it does there can depend on the configuration.
Thanks for that Andrew. :) I shall use \lbrace ... \rbrace from now on.
I wouldn't worry too much about backticks. They are rather convenient for most people, and if we're ever faced with a breaking change we can think about regex tricks to ameliorate the problems.
1 to 10 of 10