I would like to have a zigzag decoration around a box created with mdframed.
Minimal example:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\usepackage[framemethod=tikz]{mdframed}
\begin{document}
Some text.
\begin{mdframed}[tikzsetting={draw=black,decorate,decoration=zigzag}]
Some boxed text.
\end{mdframed}
Some other text.
\end{document}
This is the result:

As you can see, the zigzag is not fully displayed.
I tried playing with the options of mdframed (skipabove, skipbelow, leftmargin and rightmargin) but I could not get what I wanted. As a workaround I also tried with the zigzag options (amplitude and segment length) but to no avail.
I am pretty sure the answer lies in setting a particular margin in mdframed but I cannot find which one.

