"""StripMarkdownNormalizer --- removes markdown formatting."""

from __future__ import annotations

from .base import BaseNormalizer


class StripMarkdownNormalizer(BaseNormalizer):
    """Strips markdown formatting before scanning.

    Removes code blocks/fences, headers, bold/italic markers, link syntax
    (keeps visible text), images, blockquotes, and horizontal rules.
    Best-effort regex-based stripping.
    """

    def to_normalizer_spec(self) -> dict:
        return {"type": "strip_markdown", "config": {}}
