Skip to main content
Converts HTML content from a Playwright Page or Locator to semantic markdown format.

Examples

Arguments

source
Page | Locator
required
The source of the HTML content. When a Page is provided, extracts from the entire page. When a Locator is provided, extracts from that specific element.

Returns: str

The markdown representation of the HTML content