# Subscript and superscript in comments fail

It would be nice to make subscript and superscript work in comments.

Here, these work :

• *n*<sub>0</sub><sup>2</sup>  →  n02
• _n_<sub>0</sub><sup>2</sup>  →  n02

Thank you.

• *n*<sub>0</sub><sup>2</sup> May 4, 2014 at 12:44
• _n_<sub>0</sub><sup>2</sup> May 4, 2014 at 12:45
• These things also work on sites with MathJax enabled, but I've never felt that CodeGolf was mathy enough to make that work asking for. May 4, 2014 at 14:42
• Works for me. n₀². May 4, 2014 at 17:52
• @xfix — You joker ! Try to write u_b^n with your trick. We discuss this trick here in the comments. May 4, 2014 at 20:11

That doesn't work because HTML is not supported in comments. It has been suggested on Meta Stack Exchange to enable it in comments, but it got declined. See this answer from Jeff Atwood ♦

• * and _ for bold, italic
•  for code blocks
• [example](http://example.com "merely an example")

Or, if you really need it, use Unicode subscript/superscript characters, as I demonstrated in my comment.

Superscript characters:

⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹


Subscript characers:

₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉

• Or use Unicode characters: n₀² May 4, 2014 at 13:05
• Thank you for the workaround. But using the ordinary characters is recommended, in particular for accessibility. Moreover, in many cases the workaround is not possible, because only very few characters exist as Unicode subscript or superscript. May 4, 2014 at 13:34
• That's true, but unfortunately, there is not really another workaround, apart from putting it in an image, but that's worse for accessibility. May 4, 2014 at 13:39
• And an image is not possible in a comment — fortunately. May 4, 2014 at 13:48
• @NicolasBarbulesco: It is possible, you can upload it in the answer field and then post the URL in a comment. May 4, 2014 at 13:49
• Upload an image in the answer field? Can you elaborate on that? Jun 18, 2015 at 16:02
• Italic with * does not always work. Jun 18, 2015 at 16:02
• @NicolasBarbulesco Hmm... that might be because the asterisk is followed by the ² sign, but as far as I can see that's only a problem in comments, not in actual posts. Jun 18, 2015 at 16:05
• Let's test: 4 π *r*². Italic fails! Jun 18, 2015 at 16:05
• Yup, there it does, but it won't fail in questions/answers. Jun 18, 2015 at 16:06