function extractMarkdownFromLocator(locator): Promise<string>

Extracts markdown content from a specific locator within a web page.

Examples

Parameters

locator: Locator

The Playwright Locator object from which to extract the markdown content.

Returns

Promise<string>

A promise that resolves to the extracted markdown content.