# Fumadocs Core (the core library of Fumadocs): Remark Show
URL: /docs/headless/mdx/remark-show
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/headless/mdx/remark-show.mdx

Show content on a condition.

## Usage [#usage]

Remark Show is a remark plugin for the [`<show>`](/docs/next/markdown#show) syntax. Fumadocs MDX, `@fumadocs/astro` and [Local Markdown](/docs/next/integrations/content/local-md) enable it by default.

`<show>` renders its content when the `when` expression is true. The expression is evaluated when the page renders, so it can read the page props, like [path params](/docs/headless/page-conventions#path-params). A `<show>` without `when` fails to compile.

## Page Data [#page-data]

Content that isn't rendered is also left out of the page data: the table of contents, [heading IDs](/docs/headless/mdx/headings#headings-with-expressions), [structured data](/docs/headless/mdx/structure) and [processed Markdown](/docs/headless/mdx/remark-llms).

<Callout type="warn">
The data comes from Rehype TOC, Remark Structure and Remark LLMs. Without Fumadocs MDX, they
generate it at compile time, before any condition can be evaluated, so a document with `<show>`
fails to compile. In a custom content source, enable [runtime
outputs](/docs/headless/source-api/source#runtime-outputs).
</Callout>

## Steps and Tab Groups [#steps-and-tab-groups]

`<show>` can wrap a [step](/docs/headless/mdx/remark-steps), or a code block of a [tab group](/docs/next/markdown#tab-groups). See the [example](/docs/next/markdown#show).

- Add Remark Show before Remark Steps and `remarkCodeTab` in your plugins.
- Keep at least one step, or one tab, outside `<show>`. Otherwise each `<show>` gets its own steps or tab group.