Updated to work with pandoc >= 1.12.1
Merge pull request #7 from bamford/master

Updated to work with pandoc >= 1.12.1