```
pandoc -f latex -t markdown
\documentclass{article}
\newenvironment{flubble}{FOO}{BAR}
\begin{document}
   \begin{flubble}
   grr
   \end{flubble}
\end{document}
^D
FOO grr BAR
```