Commit 70018b5f authored by Jason Fox's avatar Jason Fox
Browse files

Move function call

parent 4ba95087
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -794,7 +794,7 @@ def postprocess(html_dir: str):
        with open(file_path, "r", encoding="utf-8") as html:
            soup = BeautifulSoup(html, "html.parser")
        

        soup = shorten_toc_text(soup)
        soup = remove_code_blocks_with_only_images(soup)
        soup = format_examples_and_notes(soup)
        soup = format_tables(soup)
@@ -818,7 +818,7 @@ def postprocess(html_dir: str):
        soup = replace_dash_characters(soup)
        soup = move_figure_id_to_FL_elements(soup)
        soup = fix_custom_tags(soup)
        soup = shorten_toc_text(soup)
        
        images, soup = extract_images_from_html(soup)
        for image_id, image_src in images.items():
            images_mapping[image_src] = {"id": image_id, "file": new_filename}