Steps
Wrap an ordered list in step markers to render it as a styled step-by-step guide with vertical connector lines.
Basic usage
Section titled “Basic usage”- Install the package
Terminal window pnpm add rehype-gfm-components - Add the plugin to your config
- Start writing GFM
View Markdown source
<!-- steps -->1. Install the package ```bash pnpm add rehype-gfm-components ```2. Add the plugin to your config3. Start writing GFM<!-- /steps -->Rich content in steps
Section titled “Rich content in steps”Steps can contain any Markdown content — code blocks, lists, links, images, or other components.
-
Clone the repository
Terminal window git clone https://github.com/claylo/rehype-gfm-components.gitcd rehype-gfm-components -
Install dependencies
Make sure you have pnpm installed, then run:
Terminal window pnpm install -
Run the test suite
Terminal window pnpm vitest runAll 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 -->How it renders
Section titled “How it renders”| Context | Rendering |
|---|---|
| GitHub | Standard numbered list |
| Starlight | Styled steps with vertical guide lines and step numbers |
Parameters
Section titled “Parameters”None. The <!-- steps --> marker takes no parameters.
HTML output
Section titled “HTML output”<ol class="sl-steps" role="list"> <li>...</li> <li>...</li></ol>