Converting markdown list format