Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for pandoc 2.5 #139

Open
joshsh opened this issue Jan 4, 2019 · 2 comments
Open

Patch for pandoc 2.5 #139

joshsh opened this issue Jan 4, 2019 · 2 comments

Comments

@joshsh
Copy link

joshsh commented Jan 4, 2019

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).

@rahulmutt
Copy link
Member

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.

@joshsh
Copy link
Author

joshsh commented Jan 5, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants