from __future__ import annotations
from pathlib import Path
from voice_rag.core.models import Document

class MarkdownLoader:
    supported_extensions = [".md"]
    def load(self, path: Path) -> Document:
        return Document(source=str(path), content=path.read_text(encoding="utf-8"))
