← All tutorials · Lessonleaf

Tutorial 5 of 5

Import and export

Intermediate 5 min

Bring in Markdown files, a ZIP of a Markdown vault or Anki and CSV flashcards, and export Markdown, card CSV, Anki text and your review history.

Lessonleaf never locks your notes in. Everything goes out as plain files that other programs read, and comes back in the same way.

Import notes

Choose File → Import Markdown, ZIP or cards…:

  • Markdown files (.md) become pages. Nested lists become points and sub-points, headings hold the points below them, paragraphs become points, and code blocks stay together. A title and tags in the front matter are used; otherwise the first heading or the file name is the title.
  • A ZIP of Markdown files — for example an exported Obsidian vault — keeps its folders as notebook folders. Pictures, settings folders and other files are left out, and the import says how many.
  • File → Import a folder of Markdown files… does the same with a folder on your computer, without zipping it first.

Import dialog with buttons to choose files or a folder and a field for pasted notes or cards

Links written as [[Title]] keep working when the titles match.

Import flashcards

CSV files (front, back, tag), tab-separated files and Anki's Notes in Plain Text exports become a new page of cards — read by Deckwright's card reader, the same one the flashcard tools use. Cards of one tag column are grouped under a point with the tag's name; Anki tags become #tags; multi-line answers become indented points. You can also paste cards or a Markdown outline into the import dialog.

Anki's .apkg packages are not read: in Anki choose Export → Notes in Plain Text first.

Export

  • Export all pages as Markdown ZIP writes one Markdown file per page in folders, with title, tags and daily-note date in the front matter. Importing that ZIP gives back the same outline.
  • Export this page as Markdown downloads the current page.
  • Export cards as CSV writes front, back, tag (the page title) and the card id. Export cards as Anki text writes a file for Anki's text import, with page title and tags as Anki tags; two-way cards become two notes.
  • Export review history as CSV writes every answer with date, card and grade — the format the spaced repetition scheduler tool reads.
  • Print flashcards… downloads the card CSV and links the printable flashcards tool, which makes a double-sided PDF.

File → Save notebook file writes everything — pages, folders, cards' review history and settings — into one .lessonleaf.json file; Open notebook file… opens it again. Copy a link to this notebook puts small notebooks into a link (with their review history; very large notebooks need a file). Signed in, Save to Google Drive keeps a copy in your own Drive.

Every notebook you open is also kept in this browser under File → Open recent…. Clearing the browser's site data deletes them, so save a file now and then.

Ready to try it?

Launch Lessonleaf →