added function for markdown table cleanup