code: def transform_soups(config, soups, precomputed):
    
    fixup_internal_links(config, soups)
    ensure_headings_linkable(soups)
  
    # Do this after ensure_headings_linkable so that there will be links.
    generate_page_tocs(soups, precomputed)
    link_pantsrefs(soups, precomputed)
docs: Mutate our soups to be better when we write them out later.