
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="418a6651-3b4d-5a30-a334-c961ff04fa3d")}catch(e){}}();
import TurndownService from 'turndown';
const turndown = new TurndownService();
// Remove non-visible elements
turndown.remove('script');
turndown.remove('style');
turndown.remove('noscript');
// Remove multimedia elements
turndown.remove('svg');
turndown.remove('img');
turndown.remove('figure');
turndown.remove('video');
turndown.remove('audio');
turndown.remove('picture');
// Remove interactive elements
turndown.remove('canvas');
turndown.remove('button');
turndown.remove('select');
turndown.remove('input');
// Remove embedded
turndown.remove('iframe');
turndown.remove('embed');
turndown.remove('object');
// Remove navigation and footer elements
turndown.remove('aside');
turndown.remove('nav');
turndown.remove('footer');
/**
 * Converts HTML content to Markdown format using Turndown.
 */
export function htmlToMarkdown(html) {
    return turndown.turndown(html);
}
//# sourceMappingURL=html_to_md.js.map
//# debugId=418a6651-3b4d-5a30-a334-c961ff04fa3d
