def pytest_funcarg__content(request):
    """
    Return the content for the current test, extracted from ``with_content``
    marker.
    """
    # prepend a title to the content to avoid a Sphinx warning emitted for
    # toctree-referenced documents without titles
    content = """\
Content
#######

{0}""".format(request.keywords['with_content'].args[0])
    return content