Try to emit whatever text is in the node.

def get_text(self, node):
        """Try to emit whatever text is in the node."""
        try:
            return node.children[0].content or ""
        except (AttributeError, IndexError):
            return node.content or ""