ShabbyX / libpandoc

C bindings to Pandoc, a markup converter library written in Haskell.
88 stars 16 forks source link

Update to newer pandoc #3

Closed ShabbyX closed 9 years ago

ShabbyX commented 11 years ago

Updated libpandoc to support new pandoc versions above 1.10 (tested with 1.11.1). Furthermore, added a user defined void * parameter to the callbacks which is a must for every callback in the world.

Also, a very minor notice is that this includes pull request #1 (a typo fix) so it closes #1.

ShabbyX commented 11 years ago

I had problems with a few formats that you may be able to fix (I'm very new to Haskell). First of all, it says readTeXMath is undefined, but I can see it in the pandoc package alright. I didn't really understand what's going on there.

On the writers side, writeDocx, writeEPUB, writeFB2 and writerODT return IO ByteString or IO String so they don't match the getOutputFormat function. From what I understood reading on the internet, you can't just convert IO String to String, so for now I commented them out. If you can figure out how to combine them with the other writers, that would be great.