3
$\begingroup$

I noticed that other people can use superscript in comments but

<sup>text</sup> 

doesn't work so how do they do it? I can't find the answer anywhere...

$\endgroup$
3
$\begingroup$

There are two possibilities here:

  1. They are using MathJax, which enables the Latex-like markdown, is enabled in comments. Specifically, using $^{2}$ in the comment box would get the appropriate superscript (NB: MathJax is not enabled on this Meta site, so you cannot test it).
  2. Using Unicode to get the appropriate superscript, e.g. getting x² straight from the linked Wikipedia page.

Unless you know all of the Unicode commands or have a link accessible for copy+paste, it's probably easier to use Option #1.

See also the comments to this Meta.StackExchange post as well as this post.

$\endgroup$
2
  • 2
    $\begingroup$ #1 works but it only raises one character. To raise multiple characters put anything after the ^ in curly brackets. $\endgroup$ Aug 8 '15 at 4:25
  • $\begingroup$ @mistermarko: That is correct, I've updated to add the curly brace $\endgroup$
    – Kyle Kanos
    Aug 8 '15 at 12:48

You must log in to answer this question.

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