def get_structure_without_hash(path_file):
    """Generate a dict with the structure of document, list of title and subtitles

    Args:
        path_file (Path): Path of file markdown

    Returns:
        dict: Structure with all title and subtitles, the key is h#
    """
    structure = {}

    with open(path_file, "r") as file:
        for line in file.readlines():
            if line.strip().startswith("#"):

                number_hash = len(line.split(" ")[0])

                new_line = line.replace("#" * number_hash, "").strip()

                if not structure.get(f"h{number_hash}"):
                    structure[f"h{number_hash}"] = [new_line]
                else:
                    structure[f"h{number_hash}"].append(new_line)

    return structure