Importing Markdown
You can bring Pages into Turtle from a ZIP of Markdown files: an Export from Turtle, or any folder of Markdown files, such as notes from another tool. Importing needs the Write Role where the Pages go.
Import a ZIP
- Put the Markdown files in a ZIP.
- In Turtle, choose where the Pages go:
- at the top of an Area: on the Area screen, choose ⋯, then Import Markdown;
- beneath a Page or Folder: open its menu and choose Import Markdown….
- Choose the ZIP.
A message at the bottom right shows how far the import has got: uploading, reading the ZIP, creating the Pages and Folders, writing their content. When it is done, the message says so. You can keep working meanwhile. (Since 0.3)
A ZIP can be 2,048 MB at most, unless your Workspace Admin set another limit. Each file in it is held to the limit for Attachments, 25 MB unless set otherwise. Turtle refuses a larger ZIP before uploading it.
How files become Pages
- A Markdown file becomes a Page. A directory with the same name as a file holds what goes beneath that Page.
- A directory without such a file becomes a Folder.
- Frontmatter, where a file has it, gives the title, whether it is a Page or a Folder, its position, its Tags and its ID. Without frontmatter, a Page is titled after its file name.
- Relative links between the files become Page links.
- Files that links point to, and files in a Page's
_attachmentsdirectory, become its Attachments.
An Export from Turtle imported again gives the same tree, content, Tags and Attachments.
When something does not come across
A file Turtle cannot import is left out with the reason, and the rest comes in. The import never stops halfway because of one file.
Since 0.3, Turtle then writes an Import report as a Page beside what it imported. It lists:
- the files that did not come across, and why,
- the files in the ZIP that no Page links to or holds,
- the Pages with links that lead to no file in the ZIP,
- the Pages with HTML that Turtle keeps as text.
The message at the end of the import leads to the report with Open report. Check each Page it lists.
Look at an import later, or undo it
Since 0.3. Turtle keeps each import, so you can look at it later and undo it. On the Area screen, choose ⋯, then Imports.
Turtle 0.2.0+38298c2
The list shows where each import came from, when and by whom it was started, and how many of its Pages and Folders are still there.
- Report opens its Import report.
- Undo moves every Page and Folder the import created to the Trash, from where each can be restored. What was created beneath them since goes with them. The report stays, marked as undone. An import can be undone once, by someone who may change everything it created.