I would like to automatically center the text in a mdframed
environment.
The following does not work
\documentclass[a4paper]{article}
\usepackage[tikz]{mdframed}
\newmdenv
[innerleftmargin = 4mm,
innerrightmargin = 4mm,
innertopmargin = 4mm,
innerbottommargin = 4mm,
middlelinewidth = 0.3mm,
linecolor = darkgray,
font=\itshape,
align=center,
roundcorner = 0.5cm]
{important}
\begin{document}
\begin{important}
Test
\end{important}
\end{document}