Skip to content

Commit 1507708

Browse files
committed
up
1 parent 01e04b7 commit 1507708

3 files changed

Lines changed: 22 additions & 6 deletions

File tree

skills/nuxt-ui/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Based on the task, load the relevant reference files **before writing any code**
8383
| Add a modal, slideover, or drawer | conventions, component-selection, overlays |
8484
| Build site navigation | conventions, component-selection, navigation |
8585
| Build a documentation site | conventions, docs |
86-
| Render markdown | component-selection, docs |
86+
| Render markdown | component-selection, components, docs |
8787
| Add a rich text editor | conventions, editor |
8888
| General UI work | conventions, component-selection |
8989

skills/nuxt-ui/references/components.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,26 @@ Quick-reference index of all 125+ components. For full API docs (props, slots, e
153153
| `UPricingPlan` | Individual pricing plan card |
154154
| `UPricingTable` | Feature comparison table |
155155

156-
## Prose (Markdown)
156+
## Prose — Base Typography
157+
158+
Standard Markdown elements auto-resolved by Comark/Content/MDC. No `::` prefix needed — they map directly from markdown syntax (`# Heading``ProseH1`, `**bold**``ProseStrong`, etc.). Themed via `appConfig.ui.prose.<name>`.
159+
160+
| Component | Renders | Notable |
161+
|---|---|---|
162+
| `H1` `H2` `H3` `H4` | Headings | H1–H3 get anchor links + TOC entries |
163+
| `P` | Paragraph | |
164+
| `A` | Link | External links get target/rel handling |
165+
| `Strong` | Bold | |
166+
| `Em` | Italic | |
167+
| `Blockquote` | Blockquote | |
168+
| `Hr` | Horizontal rule | |
169+
| `Ul` `Ol` `Li` | Lists | Supports nesting and mixed lists |
170+
| `Table` `Thead` `Tbody` `Tr` `Th` `Td` | Tables | |
171+
| `Img` | Image | Zoom on click (`:zoom="false"` to disable), `@nuxt/image` support |
172+
| `Pre` | Code block | Copy button, filename + icon, line highlighting (`{2,4-6}`), diff |
173+
| `Code` | Inline code | `color` and `lang` props |
174+
175+
## Prose — Feature Components
157176

158177
Nuxt UI-specific Prose components. In markdown files they are used **without the `Prose` prefix** (e.g. `::callout`, `::steps`). In Vue they are referenced as `ProseCallout`, `ProseSteps`, etc. Comark resolves them automatically when `@nuxt/ui` is installed.
159178

skills/nuxt-ui/references/guidelines/component-selection.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Decision matrices for choosing the right component. When in doubt, use the MCP `
8585

8686
## Markdown
8787

88-
When rendering markdown (for instance with Comark), **prefer Prose components** — they are styled and tuned for markdown contexts. Generic Nuxt UI components can also be used. `<ComarkRenderer>` (or `<Comark>`) auto-resolves `ProseX` components when `@nuxt/ui` is installed. In markdown, the `Prose` prefix can be omitted (`::callout`, `::steps`, etc.).
88+
When rendering Markdown (for instance with Comark), **prefer Prose components** — they are styled and tuned for Markdown contexts. Generic Nuxt UI components can also be used. `<ComarkRenderer>` (or `<Comark>`) auto-resolves `ProseX` components when `@nuxt/ui` is installed. In Markdown, the `Prose` prefix can be omitted (`::callout`, `::steps`, etc.).
8989

9090
| Need | Use | Not |
9191
|---|---|---|
@@ -100,9 +100,6 @@ When rendering markdown (for instance with Comark), **prefer Prose components**
100100
- Prose components use native Vue slots — Comark maps named `#slot` blocks directly to `<slot name="..." />`
101101
- Theme via `appConfig.ui.prose.<name>` using the same override pattern as other Nuxt UI components
102102
- `Callout` colors: `neutral` (default), `primary`, `secondary`, `info`, `success`, `warning`, `error`
103-
- Shorthand callout aliases: `::note`, `::tip`, `::warning`, `::caution` — expand to `Callout` with preset color + icon
104-
- `Tabs` `sync` prop persists selected tab to localStorage; `hash` scrolls to an anchor on tab change
105-
- `Steps` `level` prop sets the heading level the step titles map to (default: `3`)
106103

107104
## Layout containers
108105

0 commit comments

Comments
 (0)