import from "npm:@qretaio/html2json";
const html = `
<article class="post">
<h2>My Article</h2>
<p class="author">John Doe</p>
<div class="tags">
<span>rust</span>
<span>wasm</span>
</div>
</article>
`;
const spec = JSON.;
const result = await ;
console.log;
// {
// "title": "My Article",
// "author": "John Doe",
// "tags": [{"name": "rust"}, {"name": "wasm"}]
// }