Skip to content

Conversation

@zackw
Copy link
Contributor

@zackw zackw commented Nov 26, 2014

  • Add PANDOC_EXTENSIONS configuration variable, allowing one to
    enable or disable Pandoc's markdown extensions individually.
  • Remove dependency on pypandoc.
  • Don't change the working directory.
  • More efficient metadata extraction.

The most important aspect of this is the PANDOC_EXTENSIONS config variable. The only way to enable or disable extensions is to tack +whatever or -whatever on the end of the input format name; this can't be done with the existing PANDOC_ARGS.

Unfortunately, pypandoc doesn't support this, so I just took it out -- it really wasn't doing much for us anyway.

The other changes are just tweakage. (Why did it seem necessary to change the working directory? As far as I can tell it is completely unnecessary.)

 * Add PANDOC_EXTENSIONS configuration variable, allowing one to
   enable or disable Pandoc's markdown extensions individually.
 * Remove dependency on pypandoc.
 * Don't change the working directory.
 * More efficient metadata extraction.
liob added a commit that referenced this pull request Dec 6, 2014
I very much like, what you have done with the code. I agree, that it is nice to be able to declare pandoc extensions.

On the other hand, I disapproved at taking out pypandoc at first. However, after taking a closer look at the source of pypandoc, I came to realize, that in this case we do not hugely benefit by using an abstraction layer.

Your code works nicely with my setup with the exception that you removed the change of the cwd. However, as pandoc_reader is still a very young project, I think we can afford to break compatibility.

Thank you very much for your contribution!
@liob liob merged commit 70b2c1d into liob:master Dec 6, 2014
@liob
Copy link
Owner

liob commented Dec 6, 2014

I very much like, what you have done with the code. I agree, that it is nice to be able to declare pandoc extensions.

On the other hand, I disapproved at taking out pypandoc at first. However, after taking a closer look at the source of pypandoc, I came to realize, that in this case we do not hugely benefit by using an abstraction layer.

Your code works nicely with my setup with the exception that you removed the change of the cwd. However, as pandoc_reader is still a very young project, I think we can afford to break compatibility.

Thank you very much for your contribution!

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

Successfully merging this pull request may close these issues.

2 participants