Custom processor doesn't work when using pandoc-citeproc

Dan's Avatar

Dan

Jul 30, 2014 @ 12:32 AM

I'm trying out the trial version of Marked (Version 2.3.2 (841)). It's a killer app and would greatly improve my workflow, but I'm having difficulties using pandoc as a custom processor in order to use bibliography files.

The symptom is that pandoc doesn't execute and it probably falls back to Marked's processor. The problem seems to be sandbox-related. The console says:

30/07/14 02:08:18,876 sandboxd[134]: ([13726]) pandoc-citeproc(13726) deny file-read-data /Users/dan/pandoc-workflow/pandoctest.bib

I am using /usr/local/bin/pandoc (brew installation) and the arguments -f markdown -t html5 --biblio /Users/dan/pandoc-workflow/pandoctest.bib --csl /Users/dan/pandoc-workflow/chicago-author-date.csl.

The command (with the addition of the --standalone and input/output files) works fine via Terminal.

BTW, when I first activated the custom processor setting a Finder window asked for permission to access the /usr/local/bin folder and I agreed.

  1. Support Staff 1 Posted by Brett on Jul 30, 2014 @ 12:40 AM

    Brett's Avatar

    But your bib/csl files are outside of your /local directory, and that
    may be causing issues. Try dragging your entire home folder onto Marked
    and it should store permissions for everything inside it for you.

    Also see
    http://support.markedapp.com/discussions/problems/49829-possible-quickfix-for-23-and-pandoc-problems

    You're the third person today to complain specifically about
    pandoc/citations, so I'll dig in and do some more extensive testing as
    soon as I can.

    -Brett

  2. 2 Posted by Dan on Jul 30, 2014 @ 01:34 AM

    Dan's Avatar

    I see. Markdown + pandoc-proc + Marked really is a killer combination, particularly for academics, so I am glad you're looking into it. By the way, I don't use an .md file but a .scriv (Scrivener file) as the input file, which Marked supports. So my killer combo is Scrivener + pandoc + Marked actually!

    Well, I am happy to report that it kinda works now, with a few crashes along the way.

    I dragged my entire home folder on Marked. The first time it crashed the app, the second time it loaded some XML content from ~/Library/Containers/com.brettterpstra.marked2/Data. It didn't ask me to grant any permission, but I guess that wasn't implied by you anyway.

    The advice to grant the whole /usr/local permission kinda works. When doing so, the console complains

    30/07/14 03:05:51,754 Marked 2[679]: Was not granted access to /usr/local/bin in sandbox
    

    but the preview works just fine and it uses pandoc!

    The problem is, every time the input file is reopened, it asks for permission again (and spits out the was not granted access message above). This is fixed once granting explicitly permission to /usr/local/bin explicitly, in addition to /usr/local.

  3. Dan closed this discussion on Nov 21, 2023 @ 09:00 AM.

Comments are currently closed for this discussion. You can start a new one.

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