Yeah, I've done that with pandoc too, but I use org-mode. It's much more pleasurable to write than markdown. I don't use a great deal of org-mode features when writing, I suppose, but just being able to fold up sections and knowing the keys to quickly jump between them and rearrange them is great.