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
Pass parameters when including the snippet:
page.mdx
This renders as:
Remember to water your peace lily every 3 days.
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