Skip to content
FeaturesPricingBlogDownload

← All posts

Markdown recipe template: keep a cookbook in plain text

Write recipes in Markdown with a template for ingredients, steps and notes, front matter for servings and tags, and a folder that works as a cookbook.

A clean diagram card on a light background showing a recipe file with front matter, an ingredients list and numbered steps

A Markdown recipe is one .md file per dish: the name as a # heading, a bulleted list of ingredients with quantities, numbered steps, and a short notes section for what you changed last time. Optional front matter at the top holds servings, time and tags, so you can search and sort your recipes later. A folder of these files is a cookbook that opens on any computer or phone, prints cleanly and never disappears with a recipe app.

Below is a copyable recipe template, a filled-in example, the formatting choices that make recipes easy to follow while cooking, and a folder layout for a plain text cookbook.

Why keep recipes in Markdown?

Recipe apps come and go, and recipe websites bury the method under a long story. A plain text file holds only what you need at the stove, and you own it.

Other reasons people switch:

  • Your changes live with the recipe. "Used half the sugar, still sweet enough" is the line you will want next year.
  • Search across everything. Find every recipe with "chickpeas" or every dish tagged weeknight in one search.
  • Readable everywhere. A .md file opens in any text editor, even one that does not render Markdown.
  • Easy to share. Send one file, or paste the text into a message, and the structure survives.
  • Prints well. Headings, a list and numbered steps fit on one page.

What does a Markdown recipe template look like?

Copy this into a new file named after the dish, such as lentil-soup.md.

---
title: Recipe name
servings: 4
prep: 15 min
cook: 30 min
tags: [dinner, vegetarian]
source: Where it came from
---

# Recipe name

One line on what it is and when you make it.

## Ingredients
- 
- 
- 

## Steps
1. 
2. 
3. 

## Notes
- 

The block between the two --- lines is YAML front matter. It is optional. Editors that support it treat it as data, and others show it as a few plain lines at the top, which still reads fine. The front matter page covers the syntax and where it is supported.

What does a filled-in recipe look like?

Quantities first, so you can scan the list while shopping. Steps start with a verb and mention the ingredient they use.

---
title: Red lentil soup
servings: 4
prep: 10 min
cook: 30 min
tags: [dinner, vegetarian, weeknight]
source: Adapted from a family recipe
---

# Red lentil soup

A thick, mild soup that takes 40 minutes and keeps for three days.

## Ingredients
- 250 g red lentils, rinsed
- 1 onion, chopped
- 2 carrots, diced
- 2 cloves garlic, sliced
- 1 tsp ground cumin
- 1 litre vegetable stock
- 2 tbsp olive oil
- Juice of half a lemon
- Salt to taste

## Steps
1. Warm the olive oil in a large pot over medium heat.
2. Add the onion and carrots and cook for 8 minutes, until soft.
3. Stir in the garlic and cumin and cook for 1 minute.
4. Add the lentils and stock. Bring to a boil, then simmer for 20 minutes.
5. Blend half of the soup and stir it back in.
6. Add the lemon juice and salt.

## Notes
- 2026-10: Doubled the cumin. Better.
- Freezes well for a month.
- For a richer version, finish with a spoon of yogurt.

How should you format ingredients and steps?

Small habits make a recipe easier to cook from:

  • Use a bulleted list for ingredients and a numbered list for steps. Ingredients can be gathered in any order. Steps cannot. The Markdown lists page covers both, including nesting.
  • Group ingredients with subheadings when a dish has parts, such as ### Dough and ### Filling.
  • Write units the same way every time. Pick g or grams, tbsp or tablespoon, and stick to it, so searches work.
  • Put temperatures and times in the step where you need them: "Bake at 200°C for 25 minutes", not in a separate table.
  • Keep one action per step. If a step has "and then" twice, split it.
  • Date your notes. "2026-10: Doubled the cumin" tells you which version you are reading.

For a recipe you want to tick off while cooking, use task items in the steps:

## Steps
- [ ] Preheat the oven to 200°C
- [ ] Mix the dry ingredients
- [ ] Rub in the butter

How do you save a recipe from a website as Markdown?

Copy the ingredients and steps, not the page. Most recipe pages have a "jump to recipe" or print view that shows only the recipe card, which is the cleanest place to copy from.

  1. Open the recipe's print view, or scroll to the recipe card.
  2. Copy the ingredient list and paste it under ## Ingredients. Add - in front of each line if the bullets did not come across.
  3. Copy the method and paste it under ## Steps, numbering each step.
  4. Put the page address in source: in the front matter, so you can credit it and find it again.
  5. Cook it once, then rewrite the steps in your own words and add your notes.

Step 5 is what turns a saved page into your recipe. Ingredient lists are generally treated as facts, but a site's written method and photos belong to its author, so keep the source line when you share a recipe you adapted.

How do you scale a recipe?

Add a small table when you cook the same dish for different numbers of people. Tables are easier to read than working out the maths at the counter.

| Ingredient | 2 servings | 4 servings | 8 servings |
| --- | --- | --- | --- |
| Red lentils | 125 g | 250 g | 500 g |
| Vegetable stock | 500 ml | 1 litre | 2 litres |
| Ground cumin | 1/2 tsp | 1 tsp | 2 tsp |

Spices and salt rarely scale in a straight line. Add a note when you have tested the larger batch.

How should you organize a plain text cookbook?

Use one folder per course or meal, and lowercase file names with hyphens. Tags in the front matter handle the other ways you want to slice the collection, such as vegetarian or weeknight.

recipes/
  breakfast/
    overnight-oats.md
    shakshuka.md
  dinner/
    red-lentil-soup.md
    tray-baked-chicken.md
  baking/
    sourdough-loaf.md
  images/
    sourdough-loaf.jpg
  to-try.md

to-try.md is a list of links to recipes you have not cooked yet. Move a recipe into its own file once you have made it and written your notes.

Photos are optional. If you add one, store it in images/ and link it with a relative path, like ![Sourdough loaf](../images/sourdough-loaf.jpg). The Markdown images page explains relative paths and alt text.

What about recipe-specific formats?

If you want a computer to understand your recipes, for example to build a shopping list automatically, look at Cooklang. It is a plain text recipe language that marks ingredients inline, such as @red lentils{250%g}, and its tools can generate shopping lists from several recipes. The trade-off is that the markup is less readable to people, and general Markdown editors do not render it.

Format Readable as text Shopping lists Works in any Markdown app
Markdown with headings and lists Yes By hand Yes
Markdown with front matter Yes By hand, sortable by tags Yes, front matter shows as text where unsupported
Cooklang (.cook files) Mostly Generated No, needs Cooklang tools

For most home cooks, plain Markdown is enough. The recipes stay readable in 20 years, whatever app you use then.

How do you use recipes in the kitchen?

A few practical options:

  • Print it. One recipe usually fits on one page.
  • Read it on a phone or tablet. Keep the folder in a cloud drive you already use, and open the file from there.
  • Share one recipe. Send the .md file, or paste the text into a message.

Recipes in Noteline

Noteline, which we make, opens a recipes folder as it is and shows subfolders in the sidebar. Find in Folder (Cmd+Shift+F on a Mac, Ctrl+Shift+F on Windows and Linux) searches every recipe for an ingredient or a tag, and Print (Cmd+P or Ctrl+P) sends the current recipe to the printer. Tables edit as a grid, so a scaling table needs no pipe counting. The editor shows the alt text of an image instead of the photo itself, so photos are better viewed in another app. On iPhone and iPad, the free app keeps notes as .md files that can live in iCloud Drive, which makes a phone on the counter a workable cookbook.

Start with one note. Keep the file.

Open a folder and write. Every note is a plain .md file, with no account to create.

Try desktop free for 14 days ↓Free on iPhone, iPad and Android →

Desktop: 14-day trial, then $9.99 once. Mobile apps: free. No account.

Keep reading

  • Markdown lists
  • Markdown front matter
  • Markdown images
  • How to keep AI meeting notes as Markdown files you own
  • AI memory files: what your assistant should remember, kept in Markdown
  • An AI research workflow in Markdown: sources, summaries and claims

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io