close code blocks before section headings.