Convert notes to markdown format