Steps display a numbered sequence of instructions with a vertical progress line connecting each step. Two input modes are supported: heading mode and ordered-list mode.
Heading mode
Use ## or ### headings inside a :::steps block. Each heading becomes a numbered step:
:::steps## Install dependenciesRun the following command to install all required packages:```bashnpm install```## Configure the projectCreate a `sarde.yaml` file in the project root with the site title and theme preset.## Start the dev serverRun `sarde dev` and open `http://localhost:4727` in a browser.:::→ Three numbered steps appear with a vertical line connecting them. Each step shows its number, title, and body content below.
Ordered-list mode
Write a standard Markdown ordered list inside :::steps. CSS handles the numbering and step styling:
:::steps1. Clone the repository from GitHub.2. Install the required dependencies with `npm install`.3. Run `sarde dev` to start the local development server.:::→ The ordered list renders as styled steps with numbering and a connecting line.
The extension auto-detects which mode to use. If the block contains ## or ### headings, it uses heading mode. If no headings are found, the block renders its content directly (ordered-list mode relies on CSS for step styling).
Heading level
The first ## or ### heading found determines the step delimiter level. All subsequent headings at that level start a new step. Headings at other levels render as normal headings within the current step's body.
:::steps### Create the projectRun `sarde new site my-course`.### Add course contentCreate Markdown files in `content/docs/`:#### Lesson structureEach lesson is a single `.md` file with frontmatter.### Build and deployRun `sarde build` to generate the production output.:::→ Three steps appear (delimited by ###). The #### Lesson structure heading renders as a sub-heading inside step 2.
Rich content
Each step can contain any Markdown content: paragraphs, code blocks, images, lists, and nested extensions.
Edge cases
- Content before the first heading in heading mode creates an implicit step with no title.
- In ordered-list mode, the
:::stepscontainer adds the visual step styling. The list items themselves are standard Goldmark ordered-list nodes. - Each step includes a screen-reader-only label ("Step 1.", "Step 2.", etc.) for accessibility.
- Steps cannot be nested inside other steps.