Superscript & Subscript

ciderpress bundles rspress-plugin-supersub for inline superscript and subscript text. No configuration required.

Superscript

Wrap text with carets:

Code

E = mc^2^

Output

E = mc2

Subscript

Wrap text with tildes:

Code

H~2~O

Output

H2O

More examples

Code

CO~2~ emissions have increased by 10^6^ metric tons.

Output

CO2 emissions have increased by 106 metric tons.

Code

The 1^st^ law of thermodynamics states that energy is conserved.

Output

The 1st law of thermodynamics states that energy is conserved.

Code

a^2^ + b^2^ = c^2^ is the Pythagorean theorem, where a~1~ and b~1~ are the legs.

Output

a2 + b2 = c2 is the Pythagorean theorem, where a1 and b1 are the legs.