# extractHowTo

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web/src/lib/structured-data.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/lib/structured-data.ts#L75)

A page is a HowTo when its type says "procedure" AND it really has ≥2 numbered
steps. Each step's image is the first image between it and the next step —
exactly how the generator interleaves them.

## Signature

```ts
function extractHowTo(markdown: string, title: string, pageType: string | null | undefined): HowToSchema | null
```

## Parameters

| Name | Type |
|---|---|
| `markdown` | `string` |
| `title` | `string` |
| `pageType` | `string | null | undefined` |

**Returns:** `HowToSchema | null`
