Can't find pandoc-crossref executable
Hi all,
I purchased the MAS version of Marked2 then crossgraded so I could use pandoc as a custom processor. I'm using Marked 2.6.44 on macOS 15.1.1. My pandoc settings in Marked are:
Path: /opt/homebrew/bin/pandoc
Args: --bibliography=zotlib.bib --filter pandoc-crossref --citeproc --csl=australian-guide-to-legal-citation.csl --reference-doc=templates/refdoc-aglc.docx --resource-path=/Users/yuri/.local/share/pandoc/:/Users/yuri/Zotero/library-export/
When I try to preview a Markdown file, Marked2 throws the following error:
Error running custom processor
Error running filter pandoc-crossref:
Could not find executable pandoc-crossref
When I remove pandoc-crossref from the args the document previews fine, albeit without references of course. When I run pandoc from the command line using the same arguments it works fine too. I've manually given Marked2 full disk access in Settings. I've also resolved a little compatibility issue between the builds of pandoc and pandoc-crossref in the meantime (the latter was built against an earlier version of the former), but that didn't seem to affect this error.
Can anyone suggest a line of inquiry I might take, to get Marked2 to recognise pandoc-crossref?
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
Support Staff 1 Posted by Brett on 22 Nov, 2024 03:55 PM
I believe the `--filter` flag accepts full paths as well as just the
executable name. Could you try running `--filter
path/to/pandoc-crossref` and see if it picks it up? Your usual path
isn't available to Pandoc when executed via Marked, so explicitly
defining paths where possible is ideal.
Let me know if that helps.
-Brett
On 21 Nov 2024, at 22:06, yuri.banens wrote:
2 Posted by yuri.banens on 25 Nov, 2024 12:12 AM
Great, that worked like a charm! Thanks Brett. So you're saying that $PATH isn't available when Marked runs pandoc outside of a Terminal? That seems to make sense. Hopefully this helps someone else too.
Support Staff 3 Posted by Brett on 25 Nov, 2024 07:52 PM
Correct, Marked runs processors as its own user, and $PATH is set on a per-user basis, so things that work when you're logged into your user shell won't necessarily work for Marked. Marked sets a limited default $PATH, but it only covers basic default locations.
-Brett
On 24 Nov 2024, at 18:12, yuri.banens wrote: