def map_attributes(attributes):
    """
    By default pandoc will return a list of string for the paired attributes.
    This function will create a dictionary with the elements of the list.

    :param attributes: A list of in the order of: key1, value1, key2, value2,...
    :type attributes: list[str]
    :return: The dictionary of the paired attributes
    :rtype: dict[str, str]
    """
    return {key: value for key, value in attributes}