turn markdown to table