add discard_links_n_headers methdo to Page