Import and export#
Wilang is local-first. Your notes live in a local SQLite database on your machine, and every export below is a file you own. There is no account, no sync service, and no server copy. Nothing leaves the machine unless you turn on telemetry, which is off by default (Settings).
Two document formats ship, plus a text projection for pasting elsewhere.
| Format | Extension | Lossless | Use it for |
|---|---|---|---|
| Wilang document | .wilang (legacy .mathnote) |
Yes for the document — see what it does not carry | Backup, moving between machines, sharing a full notebook |
| Wilang Markdown | .md |
Source only — see what it drops | Version control, GitHub, pasting into an issue, any Markdown tool |
| Plain text | .txt |
No — a source projection | Reading elsewhere, feeding a document pipeline |
Exporting#
All three formats live in the File menu and the command palette.
| Action | Windows / Linux | macOS |
|---|---|---|
| Export Wilang Document… | Ctrl+E |
⌘E |
| Export Markdown… | Ctrl+Shift+E |
⌘⇧E |
| Export Plain Text… | Ctrl+Alt+E |
⌘⌥E |
| Save Note Now | Ctrl+S |
⌘S |
| Open Note… | Ctrl+O |
⌘O |
Wilang document (.wilang)#
The complete document in a single file. Use it for backup and for moving a note to another machine. A .wilang file reopens with its cell tree, folder nesting, math settings, tags, and per-cell configuration intact.
Under the hood it is a ZIP container with an envelope.json inside, which leaves room for binary assets later. You do not need to know that to use it. It is one file, and the app writes and reads it whole.
.mathnote files are still accepted on import, so documents exported by earlier builds open without conversion.
What a .wilang file does not carry#
The document travels; the database around it does not.
- Version history. Snapshots live in a separate local table, not in the exported document. A
.wilangfile is the note as it is now, not its past. - Evaluated results. Math cells re-evaluate on open. That is usually faster than you expect, but it does mean a reopened file is not byte-identical in its cached results.
- Library-folder placement, and any other library metadata.
If you care about version history, it lives in the app's local database. Back up the database, not just the documents.
Wilang Markdown (.md)#
A faithful Markdown rendering of the document: front matter, math and Markdown cells as fenced blocks carrying their directives, and folder cells as nested sections. This guide covers what you need to use it, and the export itself is the reference for the rest.
Use this format when the destination is a text tool such as GitHub, a static site generator, or a diff viewer. It round-trips source, and the app can import it back.
What Markdown does not carry#
Worth knowing before you rely on Markdown as your only copy. The format deliberately excludes:
- note and cell IDs, so every import gets fresh IDs;
- evaluated results and dependency state, because math cells evaluate fresh on open;
- math settings and per-cell configs;
- Markdown preview state and folder collapse state;
- the note's library-folder placement;
- attachments and binary assets.
A Markdown round-trip therefore preserves what you wrote, not what the app computed or how it was arranged. Use .wilang as your real backup.
Plain text#
A plain-text projection of the source. Each math cell's expression goes on its own line, each Markdown cell is stripped of its formatting, and each folder title becomes its own paragraph with its children following.
Two things to know about it:
- It contains expressions, not answers.
x^2 + 1exports asx^2 + 1, not as a number, because nothing is evaluated. To read the solved values, open the note in the app, or turn on Show Raw Below Typeset (Settings) and copy from there. - Collapse state is invisible. Everything in the folder tree comes out expanded, because the export walks the model rather than the screen.
Importing#
From a file#
Open Note… (Ctrl+O / ⌘O) opens the OS file picker. It accepts .wilang, .mathnote, .json, .md, and .markdown.
The payload kind is detected from the content, not the extension. A ZIP or JSON envelope takes the native path, and a document with the mathnote: 1 front-matter magic takes the Markdown path. A .md file that is just an essay is rejected with a clear message rather than half-imported.
From the clipboard#
Choose File → Import Note from Clipboard (⌘⇧V on macOS; the menu and palette on Windows and Linux, which have no default chord bound). It accepts both a native .wilang payload and Wilang Markdown.
From the share sheet#
Wilang registers as a share target on web and on mobile, so you can share a document into it from another app. On the web the payload is handed over through IndexedDB by a scoped service worker rather than a URL parameter, so large documents do not have to fit in a link.
Cheat sheet#
| I want to… | Do this |
|---|---|
| Back up a note | Export Wilang Document (.wilang) |
| Move to another machine | Export .wilang, then Open Note… there |
| Keep the version timeline too | Back up the app's local database — history is not in the exported file |
| Put a note in Git | Export Markdown — the .md is stable and diffable |
| Paste a note into an email | Export Plain Text, then edit in the expressions you want shown |
| See solved values as text | Turn on Show Raw Below Typeset and copy from the app |
| Get a note back from Markdown | Open Note… and pick the .md — it re-imports as source |
| Bring in a note from another app | Share it into Wilang, or copy it and use Import from Clipboard |
| Round-trip without losing the document | .wilang. Markdown drops IDs, results, and per-cell config. |