Skip to content
Merged
Changes from 2 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>
The browser evaluates 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 the value as plain text if it must be visible to those readers.
Comment thread
ethanpalm marked this conversation as resolved.
Outdated
</Note>

### Import snippets with variables

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