Is it possible to modify the resource path from lua? #10670
Unanswered
CodeSandwich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to dynamically load markdown files referencing resources relatively. E.g.
docs/03/doc.md
referencesdocs/03/MEDIA/image.png
as
. If I runpandoc --resource-path=docs/03 docs/03/doc.md ...
, they are found just fine, but if I load the markdown file dynamically, withpandoc.read
there doesn't seem to be any way to performpandoc.mediabag.fetch
that would includedocs/03
as the search path unless I declare this path with--resource-path
when starting pandoc. There's thePANDOC_STATE.resource_path
list, but it's read-only, modifying it has no effect.Beta Was this translation helpful? Give feedback.
All reactions