def hdr(tag):
    """Create a node which can be used to represent h1, h2, etc. tags
    (and their content) hierarchically as a tree, rather than the flat
    html way

    :param tag: [bs4.element.Tag]
    :return: [dict] header node
    """
    level = int(tag.name[1:])
    return {
        'tag'        : tag,
        'level'      : level,
        'parent'     : None,
        'content'    : [],
        'content_map': {},
        'children'   : []
    }