def _extract_inline_text(self, node: dict[str, Any], type_field: str = "t", content_field: str = "c") -> str | None:
        """Extract text from an inline node in a document structure.

        Args:
            node: The node to extract text from
            type_field: The field name for the node type
            content_field: The field name for the node content

        Returns:
            The extracted text or None if no text could be extracted
        """
        if node_type := node.get(type_field):
            if node_type == "Str":
                return node.get(content_field)
            if node_type == "Space":
                return " "
            if node_type in ("Emph", "Strong"):
                return self._extract_inlines(node.get(content_field, []))
        return None
Extract text from an inline node in a document structure.

        Args:
            node: The node to extract text from
            type_field: The field name for the node type
            content_field: The field name for the node content

        Returns:
            The extracted text or None if no text could be extracted
        
kreuzberg/_extractors/_pandoc.py