# extractStructuredData

**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#L176)

The one-per-page policy: HowTo wins for procedure pages, FAQPage for FAQ
pages/heuristics, else nothing.

## Signature

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

## Parameters

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

**Returns:** `HowToSchema | FaqSchema | null`
