Tasks package inserts too much vertical space after displayed math:
\documentclass{article}
\usepackage{tasks}
\begin{document}
\begin{tasks}
\task \[ X\rule{10cm}{1pt}X \]
\task \[ Y\rule{10cm}{1pt}Y \]
\task \[ Z\rule{10cm}{1pt}Z \]
\end{tasks}
\begin{enumerate}
\item \[ X\rule{10cm}{1pt}X \]
\item \[ Y\rule{10cm}{1pt}Y \]
\item \[ Z\rule{10cm}{1pt}Z \]
\end{enumerate}
\end{document}
What would be a proper way to fix this?
I know that I can adjust the vertical space manually with \vspace*{-1\baselineskip}
, for example, or with a number of other hacks. I would like to know if I am missing some configuration option, or if this behavior is somehow expected and desirable, or if this is a bug of tasks package.