Skip to content

Add subscript and superscript formatting to text editor #3070

Description

@AlexAndBear

User Story

As a user writing scientific or technical documents, I want to format text with subscript and superscript so that I can properly display chemical formulas (H₂O), mathematical expressions (x²), and footnote references.

User Value

This enhancement enables users to create properly formatted scientific, mathematical, and technical content directly within the text editor, eliminating the need for external tools or workarounds.

Acceptance Criteria

  • Subscript button available in HTML editor toolbar
  • Superscript button available in HTML editor toolbar
  • Subscript button available in TiptapJson editor toolbar
  • Superscript button available in TiptapJson editor toolbar
  • Slash commands /subscript and /superscript work in HTML editor
  • Slash commands /subscript and /superscript work in TiptapJson editor
  • Active state indication shows when subscript/superscript is applied
  • Formatting persists after save/reload in HTML mode
  • Formatting persists after save/reload in TiptapJson mode
  • Unit tests cover subscript and superscript functionality
  • Feature not available in Markdown mode (documented limitation)

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions