Outline Notes to Flashcards

Turn an indented Markdown outline with term :: definition lines into flashcards, CSV and Anki text.

Nested “- ” lists (two or four spaces per level), # headings and paragraphs. Cards: “term :: definition”, “term ::: definition” (both ways), {{c1::gap}}, or “question ::” followed by indented answer points. Optional front matter with title and tags.

Try an example: · ·

More about this tool

Part of Lessonleaf

How it works

Reads study notes written as an outline (nested “- ” lists, headings, paragraphs) and finds the flashcards written inside them: “term :: definition” lines, “:::” for cards in both directions, {{c1::cloze}} gaps, and “question ::” lines whose indented sub-points are the answer (list answers). Each card keeps its place in the outline (the parent points become its context) and the tags from #tags and the front matter. Returns the cards, a card CSV, an Anki “Notes in Plain Text” file and a link that opens the notes in Lessonleaf.

  • The outline is read like CommonMark lists: every list item, heading and paragraph becomes one block; deeper indentation makes a sub-point; headings hold the blocks under them; a line indented under a point continues it.
  • Each block is turned into Deckwright card text and read by Deckwright’s card parser: “front :: back” makes one card, “front ::: back” two (both directions), {{cN::answer}} or {{cN::answer::hint}} one cloze card per number. A block that ends with “::” (or “:::”) takes its indented sub-points as the answer, written as a list.
  • Card ids are the block id plus b (front → back), r (back → front) or cN (cloze number), so in Lessonleaf editing a card keeps its review history. Tags are the front-matter tags plus the #tags of the block and of the points above it; [[links]] keep their text and ((references)) are replaced by the referenced point.
  • The CSV has the columns front, back, tag, id (tag = the note’s title; one row per cloze note; two-way cards once). The Anki file is “Notes in Plain Text” with tabs, #html:false and the tags in column 3; two-way cards become two notes there.

Pictures and formatting other than plain Markdown text are not carried into the cards. The Anki file is plain text; import it into a Basic note type (cloze lines into a Cloze note type).

Sources

Part of Lessonleaf

  • Lessonleaf Study notebook with flashcards

    Take notes as an outline, write flashcards inside them and review what is due today.

    Open Lessonleaf

Related tools

How to use Outline Notes to Flashcards

Turn study notes written as an indented outline into flashcards — term :: definition lines, two-way cards, cloze gaps and list answers — with CSV and Anki text files.

What it is for

Many people take notes as an outline: a topic, the points under it, details under those. Flashcards usually live somewhere else, typed a second time. This tool reads the outline itself and picks out the cards you wrote inside it, so the notes stay the single source.

A point becomes a card when it contains :: (“term :: definition”), ::: (a card in both directions) or a cloze gap like {{c1::1914}}. A point that ends with :: takes the points indented below it as its answer — handy for lists such as “Causes ::” followed by four causes. Everything else stays a note and is ignored.

The tool does not invent questions or answers: only what you wrote becomes a card. Pictures are not carried over.

Worked example

The first example is a short biology outline with front matter title: Cell biology and tags: [biology]. The tool reports 7 cards from 10 outline points of “Cell biology” (basic 4, reverse 1, cloze 2).

  • “Nucleus :: holds the cell's DNA” sits under the point “Organelles”, so the card shows Organelles as its context.
  • “Mitochondria :: make ATP by cellular respiration #exam” gets the tags biology (from the front matter) and exam (from the point). The #exam itself is not part of the answer.
  • “Parts of every cell ::” has three indented points; its answer is the list cell membrane, cytoplasm, ribosomes.
  • “Aerobic respiration ::: respiration that needs oxygen” gives two cards, one in each direction.
  • The sentence with {{c1::cell membrane}} and {{c2::cell wall}} gives one cloze card per gap number.
  • “Chloroplasts are only found in plant cells” has no card syntax and stays a note.

The third example shows dates as cloze cards: “It began in {{c1::1914}} and ended in {{c2::1918}}” under “First World War” becomes two cards with that point as context, and “Causes ::” with four indented causes becomes a list answer.

How to read the result

  • Cards counts all cards; Basic, Reverse and Cloze split them by kind. Outline points is the number of points read.
  • The table shows question, answer, kind, the context (the points above the card), tags and the card id.
  • Card ids are the point number plus b (front to back), r (back to front) or c1, c2 … for cloze gaps.
  • outline-cards.csv has the columns front, back, tag, id; the tag is the title of the notes. Cloze sentences appear once with all their gaps, two-way cards once.
  • outline-cards-anki.txt is an Anki “Notes in Plain Text” file with tabs and the tags in the third column. Two-way cards appear as two notes, because the plain-text format has no direction flag.
  • The result also carries a link (openInApp) that opens the same outline as a Lessonleaf page, ready for reviews.

Tips and common mistakes

  • Indent consistently: two or four spaces per level both work, but a point is only a child when it is indented further than the point above.
  • A link such as https://example.org is never read as a card, even though it contains a colon.
  • Put tags at the end of a point (#exam); tags on a parent point apply to every card below it.
  • Headings work as parents too: points under ## Dates get Dates as context.
  • Import the Anki file into a Basic note type, and the cloze lines into a Cloze note type.

FAQ

Does it change my notes?

No. It only reads them and returns cards and files. In Lessonleaf the cards stay inside the notes, so editing a point edits its card.

Can an answer span several lines?

Yes: end the question with :: and write the answer as indented points. Each point becomes one line of the answer.

The brackets are removed and the linked title stays as plain text, so “See [[Genetics]]” reads “See Genetics” on the card.

Why does my CSV have fewer rows than cards?

Reverse cards and the extra gaps of a cloze sentence are implied by one row, so importing the CSV elsewhere creates them again.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://lessonleafoutlinecards.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://lessonleafoutlinecards.usefulweb.site/mcp · tool name lessonleaf_outline_cards
Example request
curl -s -X POST https://lessonleafoutlinecards.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"text":"---\ntitle: Cell biology\ntags: [biology]\n---\n- Organelles\n  - Nucleus :: holds the cell's DNA\n  - Mitochondria :: make ATP by cellular respiration #exam\n- Parts of every cell ::\n  - cell membrane\n  - cytoplasm\n  - ribosomes\n- Aerobic respiration ::: respiration that needs oxygen\n- The {{c1::cell membrane}} controls what enters the cell; plants also have a {{c2::cell wall}}.\n- Chloroplasts are only found in plant cells (a note, not a card).\n"}'
Feedback · ideas & bug reports welcome