I have am using the macro below and sometimes I the content I pass in via the third argument contains a minted environment. However, the code doesn't compile. How can I fix this issue?
\newcommand{\customsubsection}[3]{
\only<#1>{
{\Large \purplebold{#2}}
\vspace{1em}
#3
\vspace{1em}
}
}