Can't find pandoc-crossref executable

yuri.banens's Avatar

yuri.banens

22 Nov, 2024 04:04 AM

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?

  1. Support Staff 1 Posted by Brett on 22 Nov, 2024 03:55 PM

    Brett's Avatar

    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. 2 Posted by yuri.banens on 25 Nov, 2024 12:12 AM

    yuri.banens's Avatar

    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.

  3. Support Staff 3 Posted by Brett on 25 Nov, 2024 07:52 PM

    Brett's Avatar

    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:

  4. 4 Posted by Tero Toivanen on 07 Feb, 2025 05:55 PM

    Tero Toivanen's Avatar

    Hi,

    I have problems with the same thing. I get this error massage from Marked 2:

    "pandoc: Error running filter pandoc-citeproc: Could not find executable 'pandoc-citeproc'"

    macOS 15.2(24C101)

    I was learning with this old, but for me very good video from Nicholas
    Cifuentes-Goodbody: https://youtu.be/BrZRIU8IHaI?si=xR75J5GdkUsQYF0w

  5. 5 Posted by yuri.banens on 09 Feb, 2025 10:51 PM

    yuri.banens's Avatar

    Hi Tero

    I think the default install paths for user binaries on macOS have changed since that video was made. Also if you installed Pandoc using Homebrew the path will be different as well (see my path above: /opt/homebrew/bin/pandoc)

    If you open a Terminal and type

    which pandoc

    It should give you the path to your local installation.

  6. 6 Posted by Tero Toivanen on 10 Feb, 2025 10:22 PM

    Tero Toivanen's Avatar

    Thank you @yuri.banens I think that helped a bit. Now the error massage is
    "Due to sandboxing restrictions, some binaries are not accessible from the Mac App Store version of Marked 2. To crossgrade to the (non-sandboxed) Paddle version of Marked for free, use Help->Crossgrade."

  7. 7 Posted by Tero Toivanen on 10 Feb, 2025 11:30 PM

    Tero Toivanen's Avatar

    It gave me the same path as for you @yuri.banens /opt/homebrew/bin/pandoc

  8. 8 Posted by yuri.banens on 11 Feb, 2025 02:02 AM

    yuri.banens's Avatar

    Okay, so it seems you are using the version of Marked from the Mac App Store. That version won't work with pandoc. I think you now just need to contact @brett for a crossgrade license. See here: https://marked2app.com/help/Frequently_Asked_Questions.html#custom_...

  9. Support Staff 9 Posted by Brett on 14 Feb, 2025 03:01 PM

    Brett's Avatar

    Crossgrade licenses can now be generated in the app, just go to Help->Crossgrade and you'll get a free license.

  10. Support Staff 10 Posted by Brett on 14 Feb, 2025 03:02 PM

    Brett's Avatar

    Thanks for jumping in on this Yuri, I somehow started not getting notifications of new posts and missed the rest of this conversation.

  11. 11 Posted by Tero Toivanen on 17 Feb, 2025 09:15 PM

    Tero Toivanen's Avatar

    Thank you very much! I still have to figure out the right command for args to use my file from Zotero. I'm trying a file in JSON. Can you help me with the right args, because the one from the video doesn't work?

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