Expand fixtures/basic.md beyond prose-only annotations to exercise the
OFM features the parser must model: unordered and ordered lists,
emphasis and strong, a code span, a fenced code block (proving
annotations inside code are ignored), a thematic break, and a
transclusion. Also adds an empty-braces ingredient (@black pepper{}).
Add fixtures/combined.md, a Combined Recipe demonstrating Step
References in both sectioned (#Batter:1) and headingless (#2) forms,
which do not fit cleanly into a standalone recipe file.
1.5 KiB
title, servings, tags, source
| title | servings | tags | source | ||
|---|---|---|---|---|---|
| Classic Pancakes | 4 |
|
https://example.com/pancakes |
Classic Pancakes
A simple weekend breakfast that comes together in minutes. Pairs well with maple syrup or fresh fruit from the farmers market.
Before you start, gather your equipment:
- a $mixing bowl{}
- a $non-stick frying pan{}
- a $ladle{}
Batter
Sift @flour{200 g} and @baking powder{1 tsp} into a $mixing bowl{} along with @salt{0.5 tsp}. Make a well in the centre and crack in @eggs{2}. Gradually whisk in @milk{300 ml} until you have a smooth, lump-free batter. Melt @unsalted butter{30 g} in a $non-stick frying pan{}, then stir most of it into the batter, reserving a little for the pan. Season with a pinch of @black pepper{} if you like a savoury edge.
Cooking
- Set the $non-stick frying pan{} over a medium-high flame and let it heat for ~1 min.
- Pour in a ladleful of batter using the $ladle{} and swirl to coat the base.
- Cook for ~2-3 mins until bubbles appear across the surface, then flip and cook for ~1 min more.
- Transfer to a $plate{3} and keep warm in a low oven while you repeat with the remaining batter.
Serve immediately, embedding a drizzle of !maple syrup straight from its own recipe.
Notes
Annotations are just prose, so @flour{200 g} reads fine even inside a code span.
Text inside a fenced code block is never parsed as an annotation and stays literal:
@not an ingredient{} $not cookware{} ~5 mins