Yet another Marked2 + pandoc + citation

mario's Avatar


28 Aug, 2014 03:13 PM

I'm successfully using Marked 1.4.3 with pandoc (v1.13.0.1) as processor with :

pandoc --standalone --mathjax --from=markdown --to=html

I know it could be not in your knowledge, but you are smart !
When I try to pass a bibliography (it is executed via pandoc-citeproc)

pandoc --bibliography=local_file.bib --standalone --mathjax --from=markdown --to=html

Marked 1.4.3 doesn't to show anything, even it it does produce some html as if I didn't pass the --bibliography option.

Running exactly the same command+option in the shell produce perfectly valid html files in both cases.

As test I create a script in the same folder where I have my original markdown file, with

#produce selfcontaine html,good to check with browser
pandoc --standalone --mathjax --from=markdown --to=html --toc $MARKED_PATH

that is working prefectly, but if i add the  --bibliography  call:

#produce selfcontaine html,good to check with browser
pandoc --standalone --mathjax --from=markdown --to=html --toc $MARKED_PATH --bibliography=LOCAL_BIB.bib

From the Pandoc - Pandoc User’s Guide

    Set the bibliography field in the document’s metadata to FILE,
    overriding any value set in the metadata, and process citations 
    using pandoc-citeproc. (This is equivalent to --metadata 
    bibliography=FILE --filter pandoc-citeproc.)

that is essentially calling the pandoc-citeproc executable (I run version and that could conflict with sandboxing on mac.

I don't understand why my script is also failing, Marked should call it and grab the html output, am I wrong?


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


? 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