convert section to markdown