I'm trying to use the sidenotes package, and it appears to not support multiple-paragraph sidenotes.
For example the following document does not compile:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{sidenotes}
\begin{document}
Here is some content.\sidenote{And it has a sidenote.
This sidenote has multiple paragraphs.}
\end{document}
And results in the following error when run through pdflatex:
Runaway argument?
{\@sidenotes@placemarginal {-NoValue-}{\textsuperscript {\thesidenote \ETC.
! Paragraph ended before \IfNoValueOrEmptyTF was complete.
<to be read again>
\par
l.8 This sidenote has multiple paragraphs.}
(If "sidenote" is replaced by "footnote" this works as expected)
I assume this is expected behaviour and not just me doing something wrong, though I'd be delighted if it was the latter.
Is there any workaround for this, or an alternative to the sidenotes package with similar functionality?


