Yet another Marked2 + pandoc + citation
Hi,
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 fakedoc.sh
in the same
folder where I have my original markdown file, with
#!/opt/local/bin/fish
#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:
#!/opt/local/bin/fish
#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
--bibliography=FILE
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 0.4.0.1) 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?
Cheers,
Mario.
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