eta-hackage icon indicating copy to clipboard operation
eta-hackage copied to clipboard

Patch for pandoc 2.5

Open joshsh opened this issue 7 years ago • 2 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).

joshsh avatar Jan 04 '19 17:01 joshsh

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.

rahulmutt avatar Jan 05 '19 05:01 rahulmutt

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.

joshsh avatar Jan 05 '19 17:01 joshsh