8000 Pandoc doesn't accept empty (but valid!) metadata YAML anymore · Issue #7675 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Pandoc doesn't accept empty (but valid!) metadata YAML anymore #7675
Closed
@harrypotterIUP

Description

@harrypotterIUP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0