-
Notifications
You must be signed in to change notification settings - Fork 3
Document parameterized markdown snippets feature #1865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-Authored-By: Catherine Deskur <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
| <CodeBlock title='fern/snippets/common-warning.mdx'> | ||
| ```mdx | ||
| <Warning> | ||
| This feature is in beta and may change in future releases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'future' that become outdated
Co-Authored-By: Catherine Deskur <[email protected]>
| @@ -0,0 +1,23 @@ | |||
| ## Parameterized markdown snippets | |||
|
|
|||
| Reusable markdown snippets can now accept arbitrary parameters that can be used as variables in the snippet. This enables flexible, reusable content templates. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'now' that become outdated
fern/snippets/common-warning.mdx
Outdated
| @@ -0,0 +1,3 @@ | |||
| <Warning> | |||
| This feature is in beta and may change in future releases. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'future' that become outdated
…ts page Co-Authored-By: Catherine Deskur <[email protected]>
Document parameterized markdown snippets feature
Summary
Added documentation for parameterized markdown snippets, which allow snippets to accept arbitrary parameters as variables. The documentation was added as Step 4 to the existing reusable snippets page, maintaining consistency with the existing tutorial structure and plant-themed examples.
Changes:
reusable-markdown.mdxwith examples showing single and multiple parameter usagewatering-schedule.mdx,plant-care.mdx) used in the live Preview tabReview & Testing Checklist for Human
<Markdown src="/snippets/watering-schedule.mdx" plant="peace lily" interval="3" />renders "Water your peace lily every 3 days" (not literal{plant}text). This is the core functionality being documented./learn/docs/writing-content/reusable-snippetsin the preview and verify the Preview tab in Step 4 shows the correctly substituted textTest Plan
{plant}or{interval})Notes
watering-schedule.mdxfile and the parameterized snippet feature working correctlyLink to Devin run: https://app.devin.ai/sessions/933babf4471a4d7ca89763ad492ef797
Requested by: Catherine Deskur ([email protected])