feat: Add GitHub-style Alert component - #6279
Open
kof wants to merge 4 commits into
Open
Conversation
kof
force-pushed
the
feat/markdown-alerts-6278
branch
from
August 31, 2026 15:25
671c948 to
588e6a4
Compare
kof
force-pushed
the
feat/markdown-alerts-6278
branch
from
August 31, 2026 18:01
0fd1739 to
385e3fc
Compare
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.
Summary
Alertcomponent with a content-editablevariantproperty for note, tip, important, warning, and caution.> [!TYPE].Implementation
Alert labels and variants live in Content Engine and are shared across the component, Markdown renderer, and MDX adapters.
role="note", anddata-variant.Unsupported, lowercase, misplaced, and malformed markers remain ordinary blockquotes. There are no schema, migration, persisted-data, or sanitizer-policy changes.
Checklist
Verification
pnpm --filter @webstudio-is/content-engine test— 417 passed.pnpm --filter @webstudio-is/project-build test— 2,282 passed.pnpm --filter @webstudio-is/sdk-components-react test— 144 passed, 1 skipped.Known limitations
Alert identifiers must be uppercase and appear at the start of the blockquote's first paragraph, matching the documented syntax. Markdown Embed emits the component's markup contract but cannot create Builder instances inside sanitized HTML.
Closes #6278