Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandoc doesn't accept empty (but valid!) metadata YAML anymore #7675

Closed
harrypotterIUP opened this issue Nov 9, 2021 · 0 comments
Closed
Labels

Comments

@harrypotterIUP
Copy link

Pandoc versions 2.16 and newer don't accept empty metadata.yml files anymore. However, an empty file is indeed valid YAML. (I am using automated processing of Markdown input where sometimes, the metadata.yml is empty. That's how the issue came to light.)

This can be reproduced by simply using --metadata-file /dev/null as an "empty metadata file":

$ pandoc -f markdown -t pdf -o /dev/null --metadata-file /dev/null /dev/null
Error at "/dev/null" (line 1, column 1):
expected YAML object

The above command works fine with Pandoc 2.15. Therefore, the bug happened somewhere between 2.15 and 2.16.

@jgm jgm closed this as completed in 5fb3b82 Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant