add pandoc_self_contained_html function