# Pandoc pre-processor

#### 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 Posted by Brett on 31 Oct, 2019 12:04 PM

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

-Brett

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

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 Posted by Brett on 31 Oct, 2019 06:56 PM

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. Posted by Rory Miller on 31 Oct, 2019 08:10 PM

Yup this works. Thanks Brett.

Not sure what has caused the change…

Looking forward to NVUltra to help w my PhD!

Cheers,

Rory

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

Rory have you gotten scrivomatic to work yet?

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

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.

Mick Reed

## #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

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

### »

#### 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 Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 26 Feb, 2021 02:24 PM *manual* refresh needed when using mathjax from script 24 Feb, 2021 06:25 AM pdflatex not found 23 Feb, 2021 06:39 PM streaming preview beachballs when URL is supplied 21 Feb, 2021 05:24 PM LanguageTool support 21 Feb, 2021 01:11 PM Obsidian and link support

## Recent Articles

 Intra-document links in exported PDFs Using Ulysses with Marked Fenced code blocks inside indented code blocks Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked