<!DOCTYPE html>
<html>
<head>
    <title>API Reference - mdream</title>
    <meta name="description" content="API reference for mdream programmatic usage">
</head>
<body>
    <h1>API Reference</h1>

    <h2>Core Functions</h2>
    
    <h3>htmlToMarkdown(html, options)</h3>
    <p>Convert HTML string to Markdown.</p>
    <pre><code>import { htmlToMarkdown } from 'mdream'

const markdown = htmlToMarkdown('&lt;h1&gt;Hello&lt;/h1&gt;', {
  origin: 'https://example.com'
})</code></pre>

    <h3>streamHtmlToMark