Skip to content

Steps

Wrap an ordered list in step markers to render it as a styled step-by-step guide with vertical connector lines.

  1. Install the package
    Terminal window
    pnpm add rehype-gfm-components
  2. Add the plugin to your config
  3. Start writing GFM
View Markdown source
<!-- steps -->
1. Install the package
```bash
pnpm add rehype-gfm-components
```
2. Add the plugin to your config
3. Start writing GFM
<!-- /steps -->

Steps can contain any Markdown content — code blocks, lists, links, images, or other components.

  1. Clone the repository

    Terminal window
    git clone https://github.com/claylo/rehype-gfm-components.git
    cd rehype-gfm-components
  2. Install dependencies

    Make sure you have pnpm installed, then run:

    Terminal window
    pnpm install
  3. Run the test suite

    Terminal window
    pnpm vitest run

    All 89 tests should pass.

View Markdown source
<!-- steps -->
1. **Clone the repository**
```bash
git clone https://github.com/claylo/rehype-gfm-components.git
cd rehype-gfm-components
```
2. **Install dependencies**
Make sure you have [pnpm](https://pnpm.io) installed, then run:
```bash
pnpm install
```
3. **Run the test suite**
```bash
pnpm vitest run
```
All 89 tests should pass.
<!-- /steps -->
ContextRendering
GitHubStandard numbered list
StarlightStyled steps with vertical guide lines and step numbers

None. The <!-- steps --> marker takes no parameters.

<ol class="sl-steps" role="list">
<li>...</li>
<li>...</li>
</ol>