# Why is parskip=half messing up the spacing in mdframed?

without parskip:

parskip=half:

\documentclass[parskip=half]{scrartcl}

\usepackage{blindtext}

\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}

\usepackage[framemethod=TikZ]{mdframed}

\newmdtheoremenv[
innerlinewidth=0pt,middlelinewidth=0pt,
skipabove=\topskip,skipbelow=\topskip,
]{example}{Example}

\begin{document}

\begin{example}
\blindtext
\end{example}

\end{document}

-

Since you don't set the innertopmargin, you have the default value, that the manual specifies as .4\baselineskip. A workaround is

\newmdtheoremenv[
innerlinewidth=0pt,middlelinewidth=0pt,
skipabove=\topskip,skipbelow=\topskip,
%%% kill the initial \parskip
innertopmargin=\dimexpr.4\baselineskip-\parskip\relax,
%%%
]{example}{Example}


but this should probably be corrected in mdframed, maybe with a new key suppressfirstparskip.

-
Perfect! I'll open an issue at github. –  neo Mar 2 at 14:29
@neo: You don't need. I am here ;-) –  Marco Daniel Mar 2 at 14:29
Ah^^ Great. Thanks for the package! :) –  neo Mar 2 at 14:30
@neo: Fixed issue: github.com/marcodaniel/mdframed and the new option is suppressfirstparskip;-) –  Marco Daniel Mar 2 at 14:46