Wilang Documentation1.0.0+4

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.

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:

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:

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.