All writing
January 15, 20261 min read

Building a Page One Block at a Time

Lists, code blocks, and dividers show how ordinary document blocks can organize a practical walkthrough.

A useful tutorial can be assembled from small, movable blocks. Start with a short checklist:

  • Explain the goal before showing the steps.

  • Keep each action focused on one outcome.

  • Add a code sample only when it clarifies the idea.

A small JavaScript example

  1. Read a value.

  2. Transform it.

  3. Return a result that is easy to verify.

function formatTitle(title) {
  return title.trim().replace(/\s+/g, " ");
}

The Notion-style controls can help insert, reorder, and manage these blocks; the persisted document remains standard content JSON rather than an editor-specific mode setting.