Draft
feat: markdown tabs in rendered view via ```tabs fenced block#84
Conversation
Adds a `TabGroupExtension` TipTap extension that renders ` ```tabs ``` ` fenced code blocks as interactive tabbed panels. Syntax: ```tabs ## Tab 1 Content for the first tab. ## Tab 2 Content for the second tab. ``` - packages/editor/src/tabs-extension.tsx: new extension + parse/serialize helpers - packages/editor/src/tabs-extension.test.ts: unit tests (9 passing) - packages/editor/src/rendered-editor.tsx: wire TabGroupExtension into editor - packages/editor/src/index.ts: re-export new module - apps/web/src/styles.css: tab-group UI styles Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add markdown syntax support for tabs in rendered view
feat: markdown tabs in rendered view via ```tabs fenced block
Aug 31, 2026
Owner
|
@copilot you forgot to run lint and test. Review the lint and test errors/warnings and fix them |
Replace /^[*\-] / with /^[*-] / in the tabs-extension markdownToHtml helper to fix the no-useless-escape lint errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
Fixed in the latest commit. ESLint flagged 3 |
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.
No native way to author tabbed content panels inside a note. Adds a
TabGroupExtensionTipTap node that renders```tabs ```fenced code blocks as interactive tabbed panels in the WYSIWYG editor, round-tripping cleanly back to markdown.Syntax
Tabs are delimited by
##headings within the fenced block. Everything before the first heading is ignored.Changes
packages/editor/src/tabs-extension.tsx— newTabGroupExtensionTipTap Node:codeBlock[language=tabs]nodes and replaces them with atabGroupatom rendered viaReactNodeViewRendererparseTabsContent/serializeTabsContenthelpers for split/join of tab bodiespackages/editor/src/rendered-editor.tsx— registersTabGroupExtensionin the editor extension listpackages/editor/src/index.ts— re-exports the new moduleapps/web/src/styles.css—.tab-groupcomponent styles using existing CSS design tokenspackages/editor/src/tabs-extension.test.ts— 9 unit tests for parse/serialize round-trip