This change fixes issue #1.

But it might break when pandoc is older than 1.10.1.
Merge pull request #2 from johanv/fix-1

This change fixes issue #1.