typelead / eta-hackage

A set of patches to make Hackage compatible with the Eta language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patch for pandoc 2.5

joshsh opened this issue · comments

A patch is needed in order to use Pandoc with Eta. The latest release (2.5), as well as other releases since 1.8, has a dependency on unix (>=2.4 && <2.8).

The unix dependency can easily be patched and all it's being used for is to detect terminal status.

Other than unix, there were two other problematic dependencies:

  • cmark-gfm which binds to a non-trivial C library for markdown parsing
  • hslua which bridges via C to the Lua interpreter

After looking into the pandoc documentation, it turns out that Lua can be used to make custom converters/filters. I have disabled these code paths in the patch and it will throw an error indicating that customization is not supported.

What is the use case for this? If it relies on the Lua features or markdown conversion, implementing those may take some time.

In the meantime, I have submitted a patch for pandoc that disables Lua and markdown. You can go ahead and do etlas install pandoc to install it after etlas update.

Many thanks. My use case involves building Pandoc documents programmatically, then writing them out as reStructuredText. Markdown support is desirable, but not necessary at the moment.