Skip to content

ManualWorkspace

Previews, slides and export

Preview and present slide decks, draw Mermaid and Excalidraw diagrams, view JSON and CSV, and export to PDF.

What you can do

  • Write a slide deck as one Markdown file, a page break between slides.
  • Preview the deck beside your work, or present it fullscreen.
  • Draw diagrams from text in mermaid fences, or by hand on an Excalidraw canvas.
  • Browse JSON as a tree, and edit CSV and TSV as a table.
  • Export a document or a deck to PDF, diagrams and images included.

Preview and present

Markdown needs no preview: headings, links, images, tables, and diagrams render while you edit. A slide deck adds two views, also offered as buttons above its outline.

CommandmacOSWindows, LinuxShows
Preview slide deckCmd+EnterCtrl+EnterThe deck over the window, one slide at a time, with arrows and a counter.
Present slide deckCmd+Shift+EnterCtrl+Shift+EnterThe deck fullscreen, without arrows or counter.
In either viewKey
Next slideRight Down Space
Previous slideLeft Up Backspace
CloseEsc, or a click outside the slide

Slide decks

  1. Start a deck

    New slide deck, in the pane menu, opens a new deck as a draft, ready at # Slide 1. Or give any Markdown file this frontmatter:

    ---
    chan:
      kind: slides
    ---
  2. Split it into slides

    Type @pagebreak, or @break, and press Space or Enter. The line becomes the page break, <hr class="chan-page-break"> alone on a line, which starts the next slide.

  3. Set its shape, if you like

    The slides: block is optional, and so is each field:

    ---
    chan:
      kind: slides
      slides:
        aspect_ratio: "16:9"
        zoom_factor: 2
    ---
    FieldTakesDefault
    aspect_ratio"16:9" or "4:3""16:9"
    zoom_factorA number that scales the slide content, or a percentage such as "150%"2
A slide deck open in the editor: the outline sidebar with the Preview slide deck and Present slide deck buttons, the slides frontmatter, a mermaid-to-excalidraw fence, and a Page break marker between slides
Editing slides is Markdown. The outline lists each slide under the Preview slide deck and Present slide deck buttons.

Diagrams

WriteYou get
A code fence tagged mermaidA Mermaid diagram, rendered in place.
A fence tagged mermaid-to-excalidrawThe same Mermaid source, drawn in Excalidraw's hand-drawn style.
A .excalidraw fileA drawing canvas. Open it from the file browser or with cs open.
![](board.excalidraw) in a noteThe drawing, embedded.
New diagram, in the pane menuA new drawing, as a draft.
```mermaid
flowchart LR
  spec --> draft --> review
```

JSON and CSV

Source mode switches any of these between the view and the text.

FileViewTo edit
.jsonA tree of its objects and arrays, each one expandableSwitch to Source mode. A file that does not parse still saves, and the tree shows the parse error.
.csv, .tsvA tableEdit a cell in place. For anything else, such as columns or sorting, switch to Source mode.
Other textNoneThe source editor.

Export to PDF

FromThe PDF goes to
Export to PDF in the command launcher, on a Markdown file or its file browser rowThe machine you are at: your Downloads in Chan Desktop, a download in a browser.
cs export FILE in a workspace terminalThe workspace, beside the source with .pdf in place of its extension. --out PATH picks another path.
$cs export notes/design.md
$cs export decks/kickoff.md --out out/kickoff.pdf
SourcePDF layout
A documentA4 portrait pages with 0.65 inch margins. A page break forces a new page.
A slide deckOne slide per A4 landscape page, laid out at 1920 by 1080, or 1440 by 1080 for 4:3. A slide that overflows is scaled down whole.

Images, Mermaid diagrams, and Excalidraw embeds render into the PDF as the editor shows them.

Details and limits
  • @pagebreak expands only as you type in the rendered editor. Written into a file any other way it stays text, and only the <hr> line splits slides.
  • Any aspect_ratio other than "16:9" or "4:3" makes the file a document, not a deck.
  • In the rendered editor, Cmd+Enter first opens the calendar of a date pill at the caret, or leaves a fenced block, before it previews the deck.
  • Present slide deck makes Chan Desktop's window fullscreen; a browser may refuse fullscreen and play the deck in the page.
  • cs export renders in an open workspace window: the terminal's own, else the one that joined last. With no window open it refuses.
  • A standalone terminal refuses cs export; it needs a workspace window.
  • On a devserver, cs export writes the PDF there; cs download brings it to your machine. See Transfers.
  • cs export replaces an existing file at the output path without asking.
  • It gives up, with exit status 1, after 90 seconds without a finished page or 15 minutes in all.

Next