Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions create/reusable-snippets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ Reference variables from a snippet in a page.
</Step>
</Steps>

<Note>
Browsers evaluate MDX expressions, such as imported variables like `{myName}` and inline expressions like `{1 + 1}`. Their values do not appear in a page's initial HTML or in [offline exports](/deploy/export), so crawlers, LLMs, and other tools that do not run JavaScript see the surrounding text without them. Write values as plain text if they must be visible in those situations.
</Note>

### Import snippets with variables

Use variables to pass data to a snippet when you import it.
Expand Down