Open pablrdriguez opened 3 years ago
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!
Hi, I am having some trouble when exporting through Pandoc a document with citations (the error goes away when deleting the references). I'm using VSCode (latest version) and the last version of Markdown preview enhanced. The message error is:
Error: Command failed: pandoc -f markdown+tex_math_single_backslash -o C:\Users\Pablo\build\# title.pdf --pdf-engine=pdflatex --filter pandoc-citeproc [WARNING] Deprecated: pandoc-citeproc filter. Use --citeproc instead. pandoc-citeproc: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with [1,20]. CallStack (from HasCallStack): error, called at .\Text\Pandoc\JSON.hs:112:48 in pandoc-types-1.20-2ag16j0Vu4c8cjbMgRhfaj:Text.Pandoc.JSON Error running filter pandoc-citeproc: Filter returned error status 1
Anyone who can offer some help? Thanks!