When I try to use mdframed box inside Exercise enviroment from package exercise, the page breaking does not work. It does work if I switch the order - if I use Exercise inside a box. I however need the box IN the Exercise, and correctly broken. How can I achieve that?
\documentclass{article}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{exercise}
\usepackage{lipsum}
\newmdenv{mybox}
\begin{document}
\lipsum[1-3]
\begin{Exercise} %%% Works correctly if I swap these two enviroments
\begin{mybox}
\lipsum[1-3]
\end{mybox}
\end{Exercise}
\end{document}
EDIT: Well, apparently you get the exact same results with tcolorbox and other boxing packages. I am removing mdframed from tags and the title, as this is issue with general colored boxes, or something they have in common.