Markdown Editor

One source string, four independently derived views.

Statistics

146 words | 823 characters | 5 headings | 1 min

Words

146

Characters

823

Headings

5

Reading time

1 min

Reading speed

The estimate is a fan-in of the word count and this speed; it never touches the preview or the outline.

Editor

Markdown source

Headings, lists, fenced code, quotes, and links all render live in the preview.

Keep and copy

Saved

Drafts stay in this tab across reloads.

Paste text here to replace the document.

Documents

Edit the document

Preview

Roc Signals Field Guide

Signals keep the graph alive instead of rebuilding a whole view after every event.

Getting Started

Run roc check main.roc before you build anything larger, then read the guide.

  • Read the guide end to end
  • Skim the gallery examples
    • Live search covers async and cleanup
  • Write the spec first

Editor Notes

Special characters such as * and _ and # stay literal when they are not real markup.

A line that says 2 * 3 = 6 is arithmetic, not emphasis, and [not a link( either.

Deep Dive

A fourth-level heading nests under Editor Notes in the outline.

Performance

Keep derived values derived.
# this hash lives inside a fence and is not a heading

Use map2 for fan-in and combine for wide fan-in, and see the guide for more.

Table of contents

Number the outline