0
$\begingroup$

Sorry, I made the title in one of my questions contain $$ $$ $$ $$ $$ $$ $$ $$ and it broke the page here: Possible new definition of Gamma (Euler-Mascheroni Constant): $\lim_{x \to 0} (-\ln ( \sqrt[x]{x!} )) = \gamma$

It also makes line breaks appear in the title of the question on the Math SE home page.enter image description here




It seems to only break in Safari because too many redirects occur... just ran it on my mobile phone and it's working, but that might also just be because somebody edited the title to the correct state. (Whoever that was, thank you)

enter image description here

$\endgroup$
  • 1
    $\begingroup$ This question appears to be off-topic because it is not really reporting a bug, but rather a designed feature of MathJax. Also, it certainly raises the question: why does someone enter a bunch of $$ $$ $$ sequences in their question title? $\endgroup$ – apnorton Oct 1 '14 at 4:34
  • 1
    $\begingroup$ @anorton But it shouldn't be allowed in the title of the question surly? I could fill the page with line breaks and make the home page require insane amounts of scrolling to get to the next question... ALSO, the bug is that when doing this it crashes Safari and won't load the web page due to $$ $$ $$ $$ $$ $$ causing looping redirects. $\endgroup$ – Albert Renshaw Oct 1 '14 at 5:33
  • 4
    $\begingroup$ @anorton: It is a bug that stackexchange allows user input to break the site. Even if the bug works via unexpected use of an intended feature of mathjax, that doesn't make it any less of a bug. $\endgroup$ – Hurkyl Oct 1 '14 at 5:57
  • 1
    $\begingroup$ Why are double dollars allowed at all in titles? They completely break the layout of the page and are removed on sight by pretty much everyone. Surely it should be possible to ban their use in titles? $\endgroup$ – Najib Idrissi Oct 1 '14 at 7:31
  • $\begingroup$ @NajibIdrissi: possibly because double dollars are harmless for sites not using MathJax, and much of the underlying engine for SE is the same between the different sites. $\endgroup$ – Willie Wong Oct 1 '14 at 8:48
  • 2
    $\begingroup$ I added the tag feature-request as, even if not considering allowing $$ a bug, stripping it from user inputs in the titles is still a good idea and could be a good feature request. $\endgroup$ – Willie Wong Oct 1 '14 at 8:50
  • $\begingroup$ @WillieWong Ah, I thought it was possible to ban things on a site-by-site basis (doesn't SO ban some words from their titles?). $\endgroup$ – Najib Idrissi Oct 1 '14 at 8:53
  • 4
    $\begingroup$ @NajibIdrissi: I didn't mean to comment on its possibility. What I was trying to say is that because the SE engine was not designed from the get-go with MathJax in mind, there's no reason for them to disallow $$ until someone points out there is a problem. And as far as I can remember, this may be the first time. $\endgroup$ – Willie Wong Oct 1 '14 at 8:55
  • $\begingroup$ @WillieWong I see, good point. $\endgroup$ – Najib Idrissi Oct 1 '14 at 9:31
4
$\begingroup$

This has been somewhat solved, at least as far as math.SE is concerned, where the use of diplayed (block) equations is no longer allowed in titles. More specifically, if you attempt to include $$ in a title, you will receive the following error message:

Title cannot contain "$$".

which links to this meta question.

The problem could still come up on other MathJax-enabled SE sites, however.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .