Skip to content

extractStructuredData

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/lib/structured-data.ts

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

NameType
markdownstring
titlestring
pageType`string

Returns: HowToSchema | FaqSchema | null

Was this page helpful?

Download as PDF