Skip to content

extractHowTo

reference
1 min readUpdated

Kind: Function

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

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

NameType
markdownstring
titlestring
pageType`string

Returns: HowToSchema | null

Was this page helpful?

Download as PDF