Skip to content

Conversation

@mcanouil
Copy link
Collaborator

@mcanouil mcanouil commented Dec 6, 2025

Expose the path to the Pandoc binary through a new Lua API function quarto.paths.pandoc().

This is a follow up of #13762

@mcanouil mcanouil self-assigned this Dec 6, 2025
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Dec 6, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mcanouil mcanouil changed the title feat: add Lua API for retrieving Pandoc path feat(lua-api): add Lua API for retrieving Pandoc path Dec 6, 2025
Copy link
Collaborator

@cderv cderv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Is there any use case behind this ?

In LUA there is the Pandoc API already, so I don't see how the pandoc binary can be useful, or even prefered to using the Pandoc's LUA API.

But maybe I am missing something.

I share this concerns because exposing something means we think it could be useful. This is why sometimes we only do some modification when there is feature request or a use case behind. This avoid creating side effect or misusage of feature.

@mcanouil
Copy link
Collaborator Author

mcanouil commented Dec 8, 2025

Maybe I missed something that is covered by the Pandoc Lua API.
I need to double check as I did a lot of experiments. (switching to draft to avoid merging for now)

@mcanouil mcanouil marked this pull request as draft December 8, 2025 09:18
@cderv
Copy link
Collaborator

cderv commented Dec 8, 2025

I need to double check as I did a lot of experiments.

Cool! Interested to know the use case behind using Pandoc binary inside lua filters.

Calling Pandoc binary inside a Pandoc processing worries me, as when we do try to call quarto again with quarto. but maybe I am missing something obvious

@mcanouil
Copy link
Collaborator Author

mcanouil commented Dec 8, 2025

Calling Pandoc binary inside a Pandoc processing worries me, as when we do try to call quarto again with quarto. but maybe I am missing something obvious

I'm more likely the one that missed something here, because I had the same thought on recursive calls.

@mcanouil
Copy link
Collaborator Author

mcanouil commented Dec 8, 2025

Closing as I don't find again the version (not on Git ...) of my experiment where it was useful.

@mcanouil mcanouil closed this Dec 8, 2025
@mcanouil mcanouil deleted the feat/pandoc-path-lua-api branch December 8, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants