"use strict"; function handleH1(content, title) { content = content.replace(/

([^<]*)<\/h1>/gi, (match, text) => { if (title.trim() === text.trim()) { return ""; // remove whole H1 tag } else { return `

${text}

`; } }); return content; } module.exports = { handleH1 };