← Home

TypeStudy markdown format

What the import flow accepts. Frontmatter routes the set into a folder; Q:/A:/E:, CLOZE:, and PASSAGE: markers each become typing items.

Example
---
title: Sorting Algorithms
type: qa
folder: CS101
section: concepts
language: python
---

## Time complexity

Q: What is bubble sort's worst-case time complexity?
A: O(n^2)
E: Two nested loops over n elements.

CLOZE: The {{average}} time complexity of quicksort is O(n log n).

PASSAGE: Programming is the art of telling a computer what to do, one instruction at a time.

## Code drills

Q: How do you reverse a list in Python?
A:
```python
def reverse(xs):
    return xs[::-1]
```
E: This slice notation walks the list backwards.

Frontmatter

  • title — required. Becomes the set title.
  • typeqa · cloze · passage · snippet · vim · terminal · mixed.
  • folder — top-level folder name. Auto-created if it doesn't exist.
  • sectionconcepts or code. Used by some queries.
  • language — optional, e.g. python.

Body

  • ## headers split items into sections (display-only — items still ship as one set).
  • Q: starts a new Q&A item; A: sets the answer; E: the explanation.
  • CLOZE: creates a cloze item — the typed text is the line itself.
  • PASSAGE: creates a passage item — verbatim typing practice.
  • Fenced ```lang code blocks inside an answer flip the item type to snippet.
  • Multi-line answers continue until the next marker or section header.