Skip to content

feat: add subscript and superscript support to text editor - #3068

Merged
AlexAndBear merged 1 commit into
mainfrom
feat/text-editor-subscript-superscript
Aug 11, 2026
Merged

feat: add subscript and superscript support to text editor#3068
AlexAndBear merged 1 commit into
mainfrom
feat/text-editor-subscript-superscript

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Aug 10, 2026

Copy link
Copy Markdown
Member

Description

image

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

  • Added @tiptap/extension-subscript and @tiptap/extension-superscript to web-pkg
  • Implemented toggle actions in useEditorActions.ts
  • Integrated into HTML and TiptapJson editor strategies
  • Added unit tests (131 tests passing)

Testing

  • ✅ All tests pass
  • ✅ Type checking passes
  • ✅ Linting passes
  • ✅ Build succeeds

Type

  • Enhancement
  • Tests

@AlexAndBear
AlexAndBear force-pushed the feat/text-editor-subscript-superscript branch from 8587cf0 to faeb90e Compare August 10, 2026 15:42
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
AlexAndBear force-pushed the feat/text-editor-subscript-superscript branch from 34beb2d to 71879ef Compare August 10, 2026 15:56
@AlexAndBear
AlexAndBear merged commit c861540 into main Aug 11, 2026
30 checks passed
@AlexAndBear
AlexAndBear deleted the feat/text-editor-subscript-superscript branch August 11, 2026 07:14
@openclouders openclouders mentioned this pull request Aug 11, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add subscript and superscript formatting to text editor

2 participants