def METHOD_NAME(self, env: BuildEnvironment) -> str:
    """Read content from source and do post-process."""
    content = self.source.read()
    # emit "source-read" event
    arg = [content]
    env.events.emit('source-read', env.docname, arg)
    return arg[0]