def heading(text, level=1):
    """Render the supplied text as a heading.
	
	Parameters
	----------
	text : str
		The text to render as a heading
	level : int
		The heading level from 1 upward.
	"""
    if level == 1:
        return '{}\n{}\n'.format(text, '=' * len(text))
    elif level == 2:
        return '{}\n{}\n'.format(text, '-' * len(text))
    else:
        return '{} {}\n'.format('#' * level, text)
