Kind: Function
Source: atloria-monorepo/apps/web/src/lib/structured-data.ts
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
tsfunction extractFAQ(markdown: string, pageType: string | null | undefined): FaqSchema | null
Parameters
| Name | Type |
|---|---|
markdown | string |
pageType | `string |
Returns: FaqSchema | null
Was this page helpful?