# Outline Notes to Flashcards > Turn an indented Markdown outline with term :: definition lines into flashcards, CSV and Anki text. 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. Part of usefulweb.site (https://usefulweb.site/). Part of [Lessonleaf](https://lessonleaf.usefulweb.site/) (ownerApp: lessonleaf). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://lessonleafoutlinecards.usefulweb.site/ (interactive tool at https://lessonleafoutlinecards.usefulweb.site/tool) - JSON API: POST https://lessonleafoutlinecards.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://lessonleafoutlinecards.usefulweb.site/api/v1/tool) - OpenAPI: https://lessonleafoutlinecards.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://lessonleafoutlinecards.usefulweb.site/mcp - tool `lessonleaf_outline_cards` ## Inputs - text (textarea): Notes (Markdown outline) - 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. ## Method - 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. ## Limits - 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).