feat/tabs component#13
Merged
Merged
Conversation
Owner
teezeit
commented
Apr 19, 2026
- feat(tabs): interactive tabs via '## Title {.tabs}' heading class
- docs(tabs): add tabs-demo example + rendered artifact
- style(tabs): replace button look with underline tab style
- docs: add tabs syntax to guide and spec
- style(tabs): update tab header border color for improved visibility
Mirrors the grid pattern: heading with .tabs class declares the tabs
container; direct child headings (depth+1) become tab panels. First
tab active by default; {.active} on a sub-heading overrides.
- Parser: detect .tabs class in processNodeList, emit tabs/tab nodes
- Renderer: tabs case emits header row + panel divs, injects one-time
click-delegated switcher script (idempotent via window.__wmdTabsInit)
- Styles: structural rules in getStyleCSS wrapper (hidden panels),
sketch-themed pill headers matching nav-item aesthetic
- Tests: 7 parser + 6 renderer tests (TDD)
Source: examples/tabs-demo.md Rendered: docs/tabs-demo.html (under docs/ so it's not caught by the examples/**/*.html gitignore rule, letting mobile users preview via htmlpreview.github.io).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.