Skip to content

The best HTML to Markdown library, A esm-native & Useful Utilities with simple, lightweight and epic quality.

License

Notifications You must be signed in to change notification settings

inaridiy/webforai

Repository files navigation


webforai logo

A esm-native library that converts HTML to Markdown & Useful Utilities with simple, lightweight and epic quality.

Version Apache License

Documentation

Head to the documentation to read and learn more about Webforai.

Overview

npx webforai@latest

or

import { htmlToMarkdown, htmlToMdast } from "webforai";
import { loadHtml } from "webforai/loaders/playwright";

// Load html from url
const url = "https://www.npmjs.com/package/webforai";
const html = await loadHtml(url);

// Convert html to markdown
const markdown = htmlToMarkdown(html, { baseUrl: url });

Support

License

Apache 2.0 License