# extractFAQ

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

A page is an FAQ when its type says so, or heuristically when ≥3 of its
section headings end with a question mark. Answers are the plain-texted
section bodies, capped so we make claims, not dump pages.

## Signature

```ts
function extractFAQ(markdown: string, pageType: string | null | undefined): FaqSchema | null
```

## Parameters

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

**Returns:** `FaqSchema | null`
