function extractMarkdownFromPage(page): Promise<string>

Extracts markdown content from a web page.

Examples

import { extractMarkdownFromPage } from "@intuned/sdk/ai-extractors";

await page.goto('https://example.com');
const markdown = await extractMarkdownFromPage(page);
console.log(markdown);

Parameters

page: Page

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

Returns

Promise<string>

A promise that resolves to the extracted markdown content.