# `apps/docs` gotchas
Specific traps to watch for. One-liner per item.
## Markdown pipeline
- **JSX with no schema handler is unwrapped, not dropped.** Children pass
through as plain markdown. If a component should disappear entirely from
`.md` output, its handler must return `''`.
- **Handlers run bottom-up.** Children are already-serialized markdown
strings by the time the parent handler sees them. Don't try to inspect
child JSX from a parent handler — use `node.children` only for structure
decisions.
- **`mdxFlowExpression` / `mdxTextExpression` / `mdxjsEsm` are skipped.**
Anything wrapped in `{...}` won't appear in markdown output.
- **`` carries only an ID.** Prompt text lives in
`data/ai-prompts.data.ts`; don't inline prompt strings in MDX. Markdown
export handles the `PromptPanel` parts via
`internals/markdown-schema/PromptPanel.ts` (drops `PromptCopy`).
- **`<$Partial>` recursion is silent.** A missing or unreadable partial is
dropped without error. Check `partials/` paths when content seems missing
from generated `.md`.
- **`$Partial` `variables` are runtime-only unless wired in markdown export.**
`partialsRemark` substitutes `{{ .key }}` placeholders; `inlinePartials`
in `generate-guides-markdown.ts` must do the same or nested partials like
`path="{{ .prompt }}"` fail silently (file not found).
- **`GlassPanel` / `IconPanel` markdown handlers must include children.**
A handler that returns only `props.title` drops nested content. See
`internals/markdown-schema/Panel.ts`.
## Markdown handler authoring
- Handler files in `internals/markdown-schema/` must be named after the
component (`ContentListings.ts`, not `Listings.ts`). The registry key in
`generate-guides-markdown.ts` is the JSX element name.
- Use the existing `withDocsBasePath` / `addBaseUrlPrefix` from
`internal-links.ts` for URL prefixing — don't roll your own.
- If a handler needs data, the **JSX prop carries an `id`** and the handler
looks the data up from the same registry the runtime component uses. Don't
serialize data into JSX props.
- Push a blank line right after each exported block (heading, description,
list). Keeps handler logic linear and avoids redundant trailing-empty-line
branches.
## React / MDX components
- `not-prose` is the canonical opt-out from the surrounding `.prose`
typography. Wrap structural layout in `not-prose`; keep headings outside so
they inherit prose styles.
- `` from `MdxBase.shared.tsx` is the canonical heading. Don't roll
your own `