shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.44k stars 172 forks source link

Default flags of "Use Pandoc Parser" option #176

Open ossphil opened 5 years ago

ossphil commented 5 years ago

I got no replies at 'markdown-preview-enhanced' repository, so i try again here.

If the this option is checked, the markdown file is parsed using command

pandoc -f -t html --mathjax --filter pandoc-citeproc,

even if katex is chosen in Math Rendering Option. And these default flags make it unable to set the path of pandoc-citeproc mannually, which makes errors in case there are several versions of pandoc-citeproc installed.

I run into this problem on Ubuntu 18.04 LTS with VS Code 1.29.1/1.30.0-insider and Markdown Preview Enhanced 0.3.11.

shd101wyy commented 5 years ago

sorry i have been very busy recently. could you please send me your source files and your vscode configs so i can try it out to see the problem and find solution easier. thank you.

On Thu, Dec 20, 2018, 6:59 AM Sung Hui <notifications@github.com wrote:

I got no replies at 'markdown-preview-enhanced' repository http://markdown-preview-enhanced, so i try again here.

If the this option is checked, the markdown file is parsed using command

pandoc -f -t html --mathjax --filter pandoc-citeproc,

even if katex is chosen in Math Rendering Option. And these default flags make it unable to set the path of pandoc-citeproc mannually, which makes errors in case there are several versions of pandoc-citeproc installed.

I run into this problem on Ubuntu 18.04 LTS with VS Code 1.29.1/1.30.0-insider and Markdown Preview Enhanced 0.3.11.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/176, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0gfxVL-1faQc5Le2rSHcLWUP41ZsA5ks5u64mYgaJpZM4ZcJYY .

ossphil commented 5 years ago

OK, which files are the vscode configs for markdown-preview-enhanced please? I'll attach these files when i come back two days later.

shd101wyy commented 5 years ago

Just send me your markdown files and the JSON of USER SETTINGS from Preferences: Open Settings (JSON) command.

ossphil commented 5 years ago

@shd101wyy Sorry for the delay.

The markdown file is arbitrary, for example only "hello" in the context. There are three lines in settings.json regarding to markdown-preview-enhanced:

    "markdown-preview-enhanced.pandocPath": "/usr/local/bin/pandoc",
    "markdown-preview-enhanced.pandocMarkdownFlavor": "",
    "markdown-preview-enhanced.usePandocParser": true

And the preview says:

Error: Command failed: /usr/local/bin/pandoc -f -t html --mathjax
pandoc:

while the same version of pandoc works fine with mpe in atom.