feat: add subscript and superscript support to text editor - #3068
Merged
Conversation
AlexAndBear
force-pushed
the
feat/text-editor-subscript-superscript
branch
from
August 10, 2026 15:42
8587cf0 to
faeb90e
Compare
Add subscript (x₂) and superscript (x²) formatting options for scientific notation, mathematical expressions, and footnotes. Features: - Toolbar buttons with toggle functionality - Slash commands (/subscript, /superscript) - Active state indication - Available in HTML and TiptapJson editor modes - Not available in Markdown (no native support) Changes: - Install @tiptap/extension-subscript and @tiptap/extension-superscript - Add subscript() and superscript() editor actions - Integrate into HTML and TiptapJson strategies - Add unit tests covering all functionality 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
AlexAndBear
force-pushed
the
feat/text-editor-subscript-superscript
branch
from
August 10, 2026 15:56
34beb2d to
71879ef
Compare
JammingBen
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds subscript (x₂) and superscript (x²) formatting to the text editor for scientific notation, mathematical expressions, and footnotes.
Availability: HTML and TiptapJson modes. Not available in Markdown (no native support).
Related Issue
Closes #3070
Changes
@tiptap/extension-subscriptand@tiptap/extension-superscriptto web-pkguseEditorActions.tsTesting
Type