r/jamt9000 • • Mar 18 '10

Subscript and superscript

Reddit now supports superscript officially with ^

Custom superscript and subscript so you can make formulae like:

NH*_4_+*
2H*2O ⇌ H3O+* + OH-
a2 + b2 = c2

_1_2D + _1_3T → _2_4He + n0

Here's the syntax:

*_subscript_* makes subscript
*`superscript`* makes superscript
*_sub_`sup`* makes _sub_sup
*`sup`_sub_* makes sup_sub_

And the CSS:

/* == Subscript and superscript == */

.md em{
    position: relative;
}

/* *_sub_* */
.md em em{
    font-style: normal;
    vertical-align: sub;
    font-size: 80%;
}

/* *`sup`* */
.md em code{
    font-family: verdana, arial, helvetica, sans-serif;
    vertical-align: super;
    font-size: 80%;
}

/* *_sub_`sup`* */
.md em em+code{
    position: absolute;
    left: 0;
    bottom: 1em;
    vertical-align: super;
}

/* *`sup`_sub_* */
.md em code+em{
    position: absolute;
    left: 0;
    top: 1em;
    vertical-align: sub;
}
18 Upvotes

71 comments sorted by

View all comments

38

u/sluefootstu Aug 01 '22

Google’s keeping this thread alive.

7

u/skolrageous Aug 31 '22

I just think subscript is neat

2

u/[deleted] Sep 07 '22

test_test_

2

u/DarkMenstrualWizard Sep 14 '22

Yuuuuuup

6

u/sluefootstu Sep 15 '22

I like your username. I don’t know if I’m supposed to like it, but I do.

2

u/DarkMenstrualWizard Sep 16 '22

Lol thank you, yours is pretty good too

2

u/Omugaru Oct 24 '23

Google is still working its necromancy.

2

u/qOcO-p Jun 08 '25

It's immortal.

I'm really happy they eventually stopped archiving every single post after 6 months because of the whole Cassandra issue.

2

u/[deleted] Apr 06 '26

[removed] — view removed comment

2

u/sluefootstu Apr 07 '26

I fucking love this thread.

1

u/freewave07 Apr 27 '23

I know, right

1

u/sluefootstu Apr 29 '23

I was about to say that u/jamt9000 is averaging one upvote every 2.5 years or so, but then it got downvoted, so now it’s every 3.25. Harsh.

1

u/AdrianTeri Aug 20 '23

1

u/KJ6BWB Aug 20 '23

Apparently all of Reddit allows superscript with the ^ character. Subscript is only possible with subreddit-specific CSS.

3

u/AdrianTeri Aug 20 '23

1

u/DataBaeBee Feb 13 '25

rU+2099

1

u/DataBaeBee Feb 13 '25

r\U+2099

1

u/avspuk Sep 25 '26 edited Sep 25 '26

rₙ

rₙ

Try the 'html entity' version instead of the unicode one. And also initially enter it on old.reddit.com

1

u/avspuk Sep 25 '26 edited Sep 25 '26

PRETTY SURE MY PROBLEMS HERE ARE ALL THAT IT MUST BE IRIGINALLY WRITTEN FROM old.reddit.com AND THAT IT ALSO DOESNT LIKE EDITS

rₙ

r/ₙ

Why can't I get this to work but I can for the H₂O

And why has that stopped working when it worked in a comment or two below this obe

1

u/avspuk Sep 25 '26

H₂O

1

u/avspuk Sep 25 '26

Will this work H₂O

→ More replies (1)

1

u/avspuk Sep 25 '26 edited Sep 25 '26

Written as: H₂O

Gives: H₂O

This is the 'html entity' method

And works on both old.reddit.com & the default www version

1

u/avspuk Sep 25 '26 edited Sep 25 '26

Fuck me it will only work here this once?mmm

ETA

Has to be initially written from old.reddit.com ,..., seemingly