Replies: 3 comments 1 reply
-
This is how I ended up solving it: In
where
|
Beta Was this translation helpful? Give feedback.
1 reply
-
For me the "PWD" argument had useful information to get the dir when using Preview mode on VSCode |
Beta Was this translation helpful? Give feedback.
0 replies
-
For reference, I believe this is related to this past discussion and new one where a workaround through an extension is shared |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a lua filter to add a "edit file locally" button to complement the "Edit this page on GitHub" button.
Is there a way to get the current file path from within a lua filter?
There is
PANDOC_STATE.input_files
, but because it is passed through quarto first, it will be something like/tmp/quarto-sessioncb8bd231/3c9b23fe/quarto-input4c981533.md
.PANDOC_STATE.output_file
is as close as I got, sincefilename.html
can easily be replaced withfilename.md
, but this still lacks the full filepath.Beta Was this translation helpful? Give feedback.
All reactions