improve scripts for html -> markdown conversion