Skip to content

Instantly share code, notes, and snippets.

@ciceronianus
Last active September 16, 2020 08:49
Show Gist options
  • Save ciceronianus/0ac249177c0cd3165068fcf4b12901fa to your computer and use it in GitHub Desktop.
Save ciceronianus/0ac249177c0cd3165068fcf4b12901fa to your computer and use it in GitHub Desktop.
Roam - sup and sub :)
/*
Author:: @CatoMinor3
Version:: 1
Date:: June 8th, 2020
PayPal support: https://www.paypal.me/catominor3
How to use it: Write #sup or #sub and then use ^^higlight^^
*/
/*Tip: You can also try: https://lingojam.com/SuperscriptGenerator */
[data-tag="sup"] + .roam-highlight{
vertical-align: super;
font-size: x-small;
background-color: inherit;
}
[data-tag="sub"] + .roam-highlight{
vertical-align: sub;
font-size: x-small;
background-color: inherit;
}
[data-tag="sub"],
[data-tag="sup"] {
display:none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment