Pandoc as custom processor with bibliography

Albert's Avatar

Albert

27 Sep, 2013 02:15 PM

I'm still having trouble with using pandoc as a custom processor. With most command-line arguments, it actually seems fine, but adding the --bibliography=BIBFILE argument causes it to fall back on the internal renderer (works fine at the command line).

FWIW, I'm using pandoc 1.12.0.1. Bibliography processing seems to call an external filter to do the processing, maybe this has something to do with the trouble?

  1. Support Staff 1 Posted by Brett on 27 Sep, 2013 02:20 PM

    Brett's Avatar

    This sounds like it's going to be beyond what I can offer for support. I'm not a Pandoc expert, and as long as Marked is running the base version fine, anything beyond that probably becomes an external issue.

    However, there is one thing that might be causing issues: Marked runs custom processors in a protected shell that has no access to your standard user settings. What kind of path are you providing for the --bibliography file? If it's not an absolute URL, that could be part of the problem.

    -Brett

  2. 2 Posted by Albert on 27 Sep, 2013 02:44 PM

    Albert's Avatar

    Thanks for the recent update! Unfortunately hasn't fixed the issue I was having, and I have passed the absolute path.

    I have been able to get it running with a wrapper script, so this isn't a dealbreaker. What's weird is that it only works if I set zsh in the crunchbang line (#!/usr/local/bin/zsh, using homebrewed zsh) and doesn't work with /bin/bash.

    I don't know if that sheds any light on the issue. Is there a log of custom processor output/errors somewhere?

  3. Support Staff 3 Posted by Brett on 27 Sep, 2013 03:48 PM

    Brett's Avatar

    It was actually the logging of STDERR that was causing the hanging issues, so that's been removed. However, you may be able to throw exceptions in the script to STDERR and watch it in Console…

    -Brett

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac