Example: look at this question. The author apparently used the sidebar to create the symbol C^infty. If you bring up the "all questions" page and scroll until you see this question (page 1 at the moment), you see
Given a compact smooth manifold $M$, it's relatively well known that $(M)$ determines $M$ up to diffeomorphism.
That symbol "(M)" should be "C^infty(M)".
]]>I'm guessing you're probably having issues with jsMath. The problem is the interaction between jsMath an Markdown. You can "solve" the problem by escaping special Markdown characters (like _, *, \, and {) with a backslash. Try using \_ and \left\\\{. In fact, you usually don't have to escape underscores and curly braces (but you do have to escape the backslash before a curly brace) because the server side implementation of Markdown is smarter than the javascript version that does the preview. See this post and the jsMath page for more details. I hope the preview will be better in the beta 5 version of the software. It looks like jsMath doesn't recognize \sb, but you should just be able to use underscores.
]]>Also, what's the default: jsMath or LaTeX-via-images?
]]>(curiously, there's one mention of PHP markdown in that discussion but it doesn't get taken up)
]]>document.getElementById("wmd-input").value += ' ' +document.getElementById("code-box").value + ' '
I wasn't able to paste a javascript link here, but you can prefix above with javascript: and put into your bookmarks. Clicking on this bookmark will copy text from the code box to the edit box. Tested: Safari 4.
Actually, we can do a little detective work ... nope, none of the syntax in extended markdown seems to work which implies that it is plain, ordinary Markdown. In which case, you need to go to the top.
Edit: A little more detective work reveals that this might well be one of the bugs fixed in the latest version of PHP Markdown suggesting that they're not using this version. I'd need to experiment to see if this really is the same bug. Hang on, I can experiment here!
and a ![]()
(I guess you need to look at the alt tags to see what I'm testing, but if the bug was in PHP Markdown then the "and a" would be italicised)
]]>Does anyone know how the Markdown code is maintained? Does FogCreek use a standard distribution of Markdown, or have they forked. Can we just submit bug reports and/or patches to someone further upstream than FogCreek?
]]>As for the name, why not simply "LaTeX-style equations"? That makes it clear that it might not be quite LaTeX (and I'd suggest a thread here where people can note common differences) and also makes it clear that it's for equations only. Otherwise someone might be tempted to write their whole answer in LaTeX!
]]>@Andrew: I'd be happy to use a more accurate name. I get the same little twinge of annoyance every time I see (or use) the term "LaTeX", but I don't see a good way around it without constantly launching into explanations about how it isn't really LaTeX.
@fedja: sometimes, the box doesn't appear for me, but it appears after reloading the page. Does this work for you?
]]>The preview feature mitigates this a little, since it's obvious that stuff isn't appearing as one would expect, but it's still not technically correct to say that you can use LaTeX input.
]]>But apart from that, that's a great feature to have.
]]>You'll see a sidebar on the right, which allows you to type LaTeX and provides a real-time preview. When you're done, you can copy and paste the code over to your post. The code it produces is MarkDown syntax for an image tag. It generates alt-text containing the original LaTeX, so you can edit and see other people's source if you need to.
We've modified the original SELaTeX code in order to use our own LaTeX renderer, rather than the one over at codecogs.com. It's possible we'll have issues with this, so please report any problems.
We are well aware of the insufficiencies of this solution. In particular, it would be lovely to provide MathML to browsers that can handle it, but for now that's beyond us. It would be great to be able to write LaTeX inline in your post, rather than having to jump to the sidebar, but that will have to wait on support from FogCreek, the makers of the StackExchange software. Anyway -- perfect is the enemy of good, so for now we're going with this.
]]>