diff --git a/scripts/convert_md2html.py b/scripts/convert_md2html.py
index ba43630f2b2df759c42612ecfdc8a090630b29dc..1474729357ab98d6b9919daf3386cd70594cae0b 100755
--- a/scripts/convert_md2html.py
+++ b/scripts/convert_md2html.py
@@ -226,7 +226,6 @@ def main():
             # Fix TOC links by removing "user-content-" from id fields in
             # headings
             fout.write(html.replace("user-content-", ""))
-            fout.write(html)
             fout.write(FOOTER)
 
             fin.close()