Skip to main content
Lucid

Documentation

Shortcuts, the technical Markdown Lucid understands, and how to get documents out again.

New to Lucid?

The getting started guide covers installing, opening documents, the three modes, finding your way around, exporting and updates.

Keyboard shortcuts

These match the commands in Lucid's menus. Everything else is in the command palette.

Reader mode
⌘1
Split mode
⌘2
Editor mode
⌘3
Show or hide the outline
⌃⌘S
Find in document
⌘F
Next match
⌘G
Previous match
⇧⌘G
Command palette
⌘K
Focus mode
⌘⇧D
Larger or smaller text
⌘+⌘−
Actual size
⌘0
Settings
⌘,

Technical Markdown

Lucid reads CommonMark and GitHub Flavored Markdown, plus the extensions below. All of it renders inside the app, offline.

Math

Write TeX between single dollar signs for inline math and double dollar signs for a displayed equation. KaTeX sets it, with the AMS symbols.

The energy is $E = mc^2$.

$$
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
$$

Chemistry

The mhchem extension sets formulas, charges, states and reaction arrows with \ce{…}, inline or displayed.

$\ce{2H2 + O2 -> 2H2O}$

$$\ce{LiCoO2 <=> Li_{1-x}CoO2 + xLi+ + xe-}$$

Mermaid diagrams

A mermaid code block becomes a diagram: flowcharts, sequence, class, state and entity-relationship diagrams. Diagrams render at full type size. Drag to pan, zoom in and out, fit the diagram to the page or reset it, and copy or save it as SVG.

```mermaid
graph TD
  Draft --> Review
  Review -->|changes| Draft
  Review --> Publish
```

Code blocks

Fenced code blocks are highlighted by their language tag, labelled with it, and have a copy button. Long lines scroll sideways instead of wrapping.

Tables

Tables follow GitHub syntax, including column alignment with colons. A table wider than the text column breaks out of it; one wider than the window scrolls sideways. Cells can hold inline math.

| Law     | Differential form       |
| :------ | :---------------------- |
| Gauss   | $\nabla \cdot E = \rho/\varepsilon_0$ |
| Faraday | $\nabla \times E = -\partial_t B$ |

Callouts

GitHub and Obsidian callouts are supported: [!NOTE], [!TIP], [!IMPORTANT], [!WARNING] and [!CAUTION], along with Obsidian types such as [!EXAMPLE] and [!QUESTION]. Text after the marker becomes the title. Add - after the marker to start the callout collapsed, or + to make it collapsible but open.

> [!WARNING] Before you flash the board
> Disconnect the battery first.

> [!NOTE]- Derivation
> Collapsed until you open it.

Export and workflows

Export from the File menu or the command palette.

PDF

Lucid prints the rendered document to a vector PDF, so text stays selectable and diagrams stay sharp. Collapsed callouts are opened so nothing is hidden on paper.

Standalone HTML

A single HTML file with styles, fonts and local images embedded, which opens anywhere without Lucid. Your custom CSS comes along. If a local image is missing, the export stops and names it, so you never ship a broken page. Remote images stay links, and the file notes that they need a connection.

Formatted text

Copy the rendered document as rich text and paste it into Mail, Pages or Keynote with headings, tables and code intact.

Working with another editor

Keep writing in Neovim, VS Code or Obsidian. When the file changes on disk, Lucid redraws it and keeps your place. If you also have unsaved changes in Lucid, it asks which version to keep rather than overwriting either one.