-
-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
include-meta LUA filter (updated) #197
Conversation
Thank you, looks good! Some notes:
|
Thanks for the quick review!
I also spotted a bug when using the filter with no The behavior for RevealJS properties is only as expected if a value that should replace an earlier value is set to |
While I think the filter is pretty mature, I am not pursuing it any further. The reason is that the same effect can be realized with the standard Pandoc mechanism of "default" files with the Inside the defaults file, you can specify meta-data defaults, either with the So by simply invoking Pandoc with one or more defaults files, one can predefine defaults for meta-data with ease. I do not think it makes sense to develop a filter that does almost the same with slight variants in behavior (e.g. regarding priority rules). One hint: meta-data values that are path names with underscores (like Same for Asking for trouble:
Robust Approach:
I think using a
because this will not work in a metadata value in a defaults file. See also related issues: |
That's a great explanation; I agree completely. Thank you for all the effort, sorry we didn't get merge it. |
like this idea, thanks! |
This filter addresses #196.
It should be a complete, functional filter for adding meta-data from external YAML/Markdown files with a new 'include-meta' property for the YAML document header.
You can preview it at https://github.com/mfhepp/lua-filters/tree/master/include-meta.
The merge mechanism is heavily inspired by code contributed by @tarleb in jgm/pandoc#3115 (comment).
Note that this is my very first contribution in LUA, so any ideas for improvement are very welcome!