Parameterized markdown snippets

Reusable Markdown snippets support arbitrary parameters that can be used as variables in the snippet. This enables flexible, reusable content templates.

Create a snippet with parameter placeholders using curly braces:

fern/snippets/watering-schedule.mdx
1<Warning>Remember to water your {plant} every {interval} days.</Warning>

Pass parameters when including the snippet:

page.mdx
1<Markdown src="/snippets/watering-schedule.mdx" plant="peace lily" interval="3" />

This renders as:

Something went wrong!

Learn more about reusable Markdown snippets.

New Copy component for inline copyable text

The <Copy> component makes text copyable with a single click. Use it inline to allow readers to quickly copy version numbers, commands, API keys, or other text snippets without selecting and copying manually.

You can also customize what gets copied to the clipboard using the clipboard prop. This is useful when you want simplify commands, versions, or URLs for readability while copying complete values.

Markdown
1Use the Fern CLI to build and consume REST APIs. The latest version is
2<Copy>v2.0</Copy>.

Read more in the Copy component documentation.