Skip to content

feat(editor): add table of contents for markdown and tiptap-json - #3440

Merged
AlexAndBear merged 4 commits into
mainfrom
feat/editor-table-of-contents
Sep 28, 2026
Merged

AlexAndBear merged 4 commits into
mainfrom
feat/editor-table-of-contents

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Description

Adds a collapsible, floating "Outlines" panel (table of contents) to the text editor for markdown and tiptap-json files, based on @tiptap/extension-table-of-contents. Clicking a heading scrolls to it, and the heading in view is highlighted. The panel is opt-in via the new tableOfContents option of useTextEditor.

Related Issue

How Has This Been Tested?

  • test environment: local OpenCloud dev setup, Chrome
  • test case 1: markdown and tiptap-json files, navigate and highlight headings
  • test case 2: empty hint without headings, read-only mode, hidden in source mode
  • unit tests

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear self-assigned this Sep 23, 2026
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Sep 24, 2026
@AlexAndBear AlexAndBear moved this from Qualification to In Progress in OpenCloud Team Board Sep 24, 2026
@AlexAndBear
AlexAndBear requested a review from kulmann September 24, 2026 06:37
@AlexAndBear
AlexAndBear force-pushed the feat/editor-table-of-contents branch from 216ddcc to 8f7899f Compare September 25, 2026 09:14

@tammi-23 tammi-23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 great feature

@AlexAndBear
AlexAndBear merged commit cf991ed into main Sep 28, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the feat/editor-table-of-contents branch September 28, 2026 08:54
@openclouders openclouders mentioned this pull request Sep 28, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Editor: Show / toggle TOC

2 participants