Do not fail on nonexistent metadata files #9813
avidseeker
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
A better method might be to use a filter that looks for metadata files, reads them with local function find_metadata_files()
-- implement
end
function Pandoc (doc)
for _, filename in ipairs(find_metadata_files()) do
doc = doc .. pandoc.read(io.open(filename):read 'a', 'markdown')
end
return doc
end |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think that failing is the right thing to do in this case. The filter may be a good workaround for you. |
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
-
I have
defaults.yaml
that I use for documents in specific project structure:and I would like to use the same defaults file for files outside that project. Can pandoc just assume that metadata was not provided instead of failing on
Could not find metadata file ../metadata.yml
?Beta Was this translation helpful? Give feedback.
All reactions