import string


def markdown_header(
        text: str,
        template: string.Template = string.Template('<span style="font-family:Papyrus; font-size:2em;">$text</span>')
    ) -> str:
    """
    Returns a markdown header for a given text.

    **Parameters**

    - `text` : str

        Text for the header.

    - `template` : string template

        The template that defines the appearance of the header, and in which `text` will be embedded.

    **Returns**

    - `out` : str
        Markdown-compatible text.

    """

    return f'\n{template.substitute(text=text)}\n\n'