tea.mathoverflow.net - Discussion Feed (curly braces!) Sun, 04 Nov 2018 13:07:39 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & Feed Publisher Scott Morrison comments on "curly braces!" (16042) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16042#Comment_16042 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16042#Comment_16042 Thu, 08 Sep 2011 12:29:47 -0700 Scott Morrison 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.

]]>
Emil J comments on "curly braces!" (16032) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16032#Comment_16032 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16032#Comment_16032 Thu, 08 Sep 2011 07:12:02 -0700 Emil J
And how does the thing with HTML tags work, exactly? I just tried <p>$\{0,1\}$</p> and <div>$\{0,1\}$</div> in answer preview, and neither works (even though the tags are recognized: the <p> started a separate paragraph). ]]>
DavidRoberts comments on "curly braces!" (16024) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16024#Comment_16024 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16024#Comment_16024 Thu, 08 Sep 2011 00:16:45 -0700 DavidRoberts Thanks for that Andrew. :) I shall use \lbrace ... \rbrace from now on.

]]>
Andrew Stacey comments on "curly braces!" (16022) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16022#Comment_16022 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16022#Comment_16022 Wed, 07 Sep 2011 23:56:05 -0700 Andrew Stacey 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.

]]>
DavidRoberts comments on "curly braces!" (16012) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16012#Comment_16012 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16012#Comment_16012 Wed, 07 Sep 2011 15:32:30 -0700 DavidRoberts Or you could use backticks, but perhaps Andrew will scold me for bad practice.

]]>
Andrew Stacey comments on "curly braces!" (16007) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16007#Comment_16007 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16007#Comment_16007 Wed, 07 Sep 2011 13:04:39 -0700 Andrew Stacey (And, of course, Markdown demonstrated my point by escaping the angle brackets in those tags!)

]]>
Andrew Stacey comments on "curly braces!" (16006) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16006#Comment_16006 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16006#Comment_16006 Wed, 07 Sep 2011 13:04:06 -0700 Andrew Stacey 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 &lt;p> ... &lt;/p> around it.

]]>
Michael Hardy comments on "curly braces!" (16005) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16005#Comment_16005 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16005#Comment_16005 Wed, 07 Sep 2011 12:48:13 -0700 Michael Hardy voloch comments on "curly braces!" (16004) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16004#Comment_16004 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16004#Comment_16004 Wed, 07 Sep 2011 12:37:42 -0700 voloch Michael Hardy comments on "curly braces!" (16002) http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16002#Comment_16002 http://mathoverflow.tqft.net/discussion/1133/curly-braces/?Focus=16002#Comment_16002 Wed, 07 Sep 2011 12:33:48 -0700 Michael Hardy