convert layout to markdown