We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think I found a quite bad bug, but I want other eyes on it to verify.
There is a setting in the plugin that allows the user to input their own custom path for pdflatex, in case it's not accessible on the user's PATH.
The code that spawns the pandoc process tries to use this path in the following way:
process.env
obsidian-pandoc/pandoc.ts
Line 149 in c8cf21a
env
Line 159 in c8cf21a
Line 161 in c8cf21a
So the custom pdflatex path is actually never used, and the only way this plugin can ever generate pdfs is if pdflatex actually is on the user's PATH.
I think the fix is simply to change line 161 to:
pandoc = spawn(input.pandoc || 'pandoc', args, { env: env });
Thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think I found a quite bad bug, but I want other eyes on it to verify.
There is a setting in the plugin that allows the user to input their own custom path for pdflatex, in case it's not accessible on the user's PATH.
The code that spawns the pandoc process tries to use this path in the following way:
process.env
object:obsidian-pandoc/pandoc.ts
Line 149 in c8cf21a
env
object with that new path:obsidian-pandoc/pandoc.ts
Line 159 in c8cf21a
process.env
anyway:obsidian-pandoc/pandoc.ts
Line 161 in c8cf21a
So the custom pdflatex path is actually never used, and the only way this plugin can ever generate pdfs is if pdflatex actually is on the user's PATH.
I think the fix is simply to change line 161 to:
pandoc = spawn(input.pandoc || 'pandoc', args, { env: env });
Thoughts?
The text was updated successfully, but these errors were encountered: