SupSub is an Obsidian plugin that allows you to easily format selected text with <sup>
and <sub>
tags, enabling quick superscript and subscript formatting in your notes.
- Cursor Positioning: Now, if you use the hotkeys without selecting any text, the cursor will be positioned between the newly inserted
<sup>
or<sub>
tags, allowing you to start typing immediately. - Enhanced Toggle Behavior: The plugin still allows you to toggle superscript and subscript formatting. If the selected text is already wrapped in the respective tags, pressing the hotkey will remove the tags.
- Superscript: Use the hotkey
Option + Command + '='
on macOS orCtrl + Alt + '='
on Windows to wrap the selected text with<sup>
tags. If no text is selected, the cursor will be placed between the<sup></sup>
tags. - Subscript: Use the hotkey
Option + Command + '-'
on macOS orCtrl + Alt + '-'
on Windows to wrap the selected text with<sub>
tags. If no text is selected, the cursor will be placed between the<sub></sub>
tags. - Toggling: If the selected text is already wrapped in
<sup>
or<sub>
, using the hotkey will remove the tags.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open a new issue or submit a pull request in the GitHub repository.
This plugin is licensed under the MIT License.