Background
Using pandoc to convert a Markdown document into ConTeX and would like to frame a section.
Problem
Using \beforesection and \aftersection with \starttextbackground and its stopper only works with start/stop sections, which is unsupported by pandoc.
Code
Here is example code produced by pandoc:
\starttext
\chapter{Chapter}
\section{Section 1}
\subsection{Summary}
\input tufte
\section{Section 2}
\subsection{Summary}
\input knuth
\stoptext
Question
Without using \startsection and \stopsection, how would you put a frame around an entire section?
\stopsection. – Henri Menke May 14 '17 at 21:37