vscode-markdown-preview-enhanced
vscode-markdown-preview-enhanced copied to clipboard
Default --filter=pandoc-citeproc should be removed for pandoc 2.11 and higher
Error: Command failed: /usr/local/bin/pandoc --from=markdown-raw_tex+tex_math_single_backslash --to=html --mathjax --number-sections --filter=pandoc-crossref --filter pandoc-citeproc [WARNING] Deprecated: pandoc-citeproc filter. Use --citeproc instead. Error running filter pandoc-citeproc: Could not find executable pandoc-citeproc
Trying to 'trick' the plugin to use --citeproc
by putting it in the option preferences results in complaints about finding the bibliography (in block
)
Error: Command failed: pandoc --from=markdown-raw_tex+tex_math_single_backslash --to=html --katex --file-scope --reference-location=block --citeproc --filter pandoc-citeproc
Unknown option for reference-location: block --citeproc
Fix it using this method:
Go to the folder file ~/.vscode/extensions using (command shift + G on mac) then locate \shd101wyy.markdown-preview-enhanced-0.5.13\node_modules@shd101wyy\mume\out\src
Next edit both the files named markdown-engine.js and pandoc-convert.js by replacing the line of code from
args.push("--filter", "pandoc-citeproc");
to
args.push("--citeproc");
Save the changes and it should work. I found this solution via a comment from another user and will cite it when I find it.
@shd101wyy it would be great if this line of code was changed in future updates so that users do not have to do it manually, but thank you so much for this extension, it is awesome!
Thanks to @notZaki I followed here and implemented the solution from @messagejar .
I now do NOT have the errors—but I get the
[WARNING] Citeproc: citation lucaWantMakeBetter not found
which is weird, because I have this entry
@online{lucaWantMakeBetter,
title = {Want to {{Make Better Decisions}}? {{Start Experimenting}}},
shorttitle = {Want to {{Make Better Decisions}}?},
author = {Luca, Michael and Bazerman, Max H.},
url = {https://sloanreview.mit.edu/article/want-to-make-better-decisions-start-experimenting/},
urldate = {2021-08-23},
abstract = {It’s early in the age of experimentation — and the right time to start building expertise.},
langid = {american},
organization = {{MIT Sloan Management Review}},
keywords = {Decisions,Experiments,MIT},
file = {C\:\\Users\\xyz\\Zotero\\storage\\JHM65QA7\\want-to-make-better-decisions-start-experimenting.html}
}
and it's being picked up by another extension in the same .md file without any issues.
This is my header—which does NOT seem to be picked up by pandoc as a header. When I have the Enhanced Viewer to use another parser, it works fine—but I can't get citations, either.
---
id: blahblah
title: Test
desc: 'just testing stuff: primarily citations'
updated: 1629960547898
created: 1629775917010
bibliography: [C:\xyz\Dendron\vault\assets\bibliographies\global-library.bib]
---
Basically, my understanding is that:
- It does NOT recognise the .bib file, because...
- It does NOT recognise the header syntax...?
I am using the Dendron versions of these extensions, but my understanding is that they work the same.
I am stumped as to what I'm doing wrong...