updated publish script to produce better markdown