Commit a6ac7df8 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

fix: examples and note

parent 718110d0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -675,6 +675,9 @@ def postprocess(html_dir: str):
        with open(file_path, "r", encoding="utf-8") as html:
            soup = BeautifulSoup(html, "html.parser")

        soup = remove_code_blocks_with_only_images(soup)
        soup = format_examples_and_notes(soup)

        if (
            new_filename.replace(".html", "") in files_with_references
        ):  # Reference-specific formatting
@@ -689,9 +692,6 @@ def postprocess(html_dir: str):

        soup = handle_ew_div(soup)

        soup = remove_code_blocks_with_only_images(soup)
        soup = format_examples_and_notes(soup)

        soup = remove_links_from_labels(soup)
        soup = add_ids_to_labels(soup)
        soup = replace_dash_characters(soup)