Pandoc pre-processor

Rory's Avatar

Rory

30 Oct, 2019 08:00 PM

Hi Brett, Think Marked2 is great.
I am use Marked2 with a panda pre-processor to parse citations. In the last few days this is not working. The command still works in the terminal.

The settings:
Path /usr/local/bin/pandoc
Args --filter pandoc-citeproc --csl="/Users/{path where CSL file is located}.csl" --bibliography="/Users/{path where bibliography is located}.bib"

It gives the following error:
"Error running custom preprocessor"

"pandoc-citeproc:PandocResourceNotFound "\"/Users/{USER}/{path}.csl\"" Error running filter pandoc-citeproc: Filter returned error status 1"

Help appreciated

  1. Support Staff 1 Posted by Brett on 31 Oct, 2019 12:04 PM

    Brett's Avatar

    So this was working in Marked previously? Did anything else on your
    computer change in the meantime?

    -Brett

  2. 2 Posted by Rory Miller on 31 Oct, 2019 06:38 PM

    Rory Miller's Avatar

    Yes. This was working great and the same command (with the same arguments) works perfectly from the terminal/command line. I’m still running Mojave.

    Can’t think of anything specific. Only thing is I’ve been playing around with https://github.com/iandol/scrivomatic scrivener and scrivomatic but this uses Pandoc.

    ——
    Rory

  3. Support Staff 3 Posted by Brett on 31 Oct, 2019 06:56 PM

    Brett's Avatar

    I'm noticing the doubling of quotes around the path argument in the error message. What happens if you remove the quotes from the paths in the arguments?

    Thanks,
    Brett

  4. 4 Posted by Rory Miller on 31 Oct, 2019 08:10 PM

    Rory Miller's Avatar

    Yup this works. Thanks Brett.

    Not sure what has caused the change…

    Looking forward to NVUltra to help w my PhD!

    Cheers,

    Rory

  5. 5 Posted by Topofthewest on 01 Nov, 2019 02:49 PM

    Topofthewest's Avatar

    Rory have you gotten scrivomatic to work yet?

  6. 6 Posted by Mick Reed on 17 Nov, 2019 07:11 AM

    Mick Reed's Avatar

    Hi Brett
    Love Marked and nvAlt. Thank you.

    I do have a problem though. I have Marked 2.5.35 (978) via Setapp on a Macbook Pro (late-2013) running Mojave. I just downloaded the trial from your web site but the problem is the same.

    Here's a very silly bit of Markdown to show the problem:

    Mick Reed

    #Heading 1 ##Heading 2 What a test setup [@Reed:1861aa, 123]

    #References

    Using Pandoc, I'd expect the citation to appear at the end in the Reference Section, but it doesn't - well not at first sight.

    The top half of the attachment shows the Markdown correctly but the citation hasn't been handled as I want. When I toggle the custom processor, as per the lower half, the citation gets done properly but everything else is wrong.

    The custom processor path is /usr/local/bin/pandoc and the args are -f markdown -t html5 -s --filter pandoc-citeproc --bibliography /users/mickreed/Documents/Dropbox/BiBTex_Files/MJR.bib

    Any ideas?

    Best

    Mick Reed

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