/** * HTML to MDX Sanitizer * * Self-healing utility that sanitizes HTML content from external tools (ADO, JIRA, GitHub) * for MDX compatibility. MDX uses JSX syntax which has stricter rules than HTML5. * * Common MDX compatibility issues fixed: * 1. Unquoted attributes: target=_blank → target="_blank" * 2. Self-closing tags:
→
* 3. HTML entities: decoded to characters * * @module utils/html-to-mdx */ /** * Sanitize HTML content for MDX compatibility * * Apply to ALL content imported from external tools before writing to .md files. * * @param html - Raw HTML content from external tool (ADO, JIRA, GitHub) * @returns Sanitized content safe for MDX compilation * * @example * ```typescript * const description = sanitizeHtmlForMdx(adoWorkItem.fields['System.Description']); * ``` */ export declare function sanitizeHtmlForMdx(html: string | null | undefined): string; /** * Validate MDX compatibility without modifying content * * Use for validation hooks that need to detect issues without fixing. * Skips content inside code blocks (``` or indented code). * * @param content - Content to validate * @returns Array of issue descriptions found */ export declare function validateMdxCompatibility(content: string): string[]; //# sourceMappingURL=html-to-mdx.d.ts.map