def _get_pandoc_type_from_mime_type(self, mime_type: str) -> str:
        """Get Pandoc format type from MIME type.

        Args:
            mime_type: The MIME type to look up

        Returns:
            The corresponding Pandoc type

        Raises:
            ValidationError: If mime_type is not supported
        """
        if pandoc_type := (self.MIMETYPE_TO_PANDOC_TYPE_MAPPING.get(mime_type, "")):
            return pandoc_type

        if mime_type == "text/markdown":
            return "markdown"

        for k, v in self.MIMETYPE_TO_PANDOC_TYPE_MAPPING.items():
            if mime_type.startswith(k):
                return v

        raise ValidationError(f"Unsupported mime type: {mime_type}")
Get Pandoc format type from MIME type.

        Args:
            mime_type: The MIME type to look up

        Returns:
            The corresponding Pandoc type

        Raises:
            ValidationError: If mime_type is not supported
        
kreuzberg/_extractors/_pandoc.py