Skip to content

Strict YAML validation collides with existing lua filters for Pandoc #4139

Closed

Description

@bcdavasconcelos

Bug description

The field bibliography now must be validated as a string, but existing filters for Pandoc sometimes use other types. Example:

bibliography:
  primary: test/primary.bib
  secondary: test/secondary.bib

This is the case of the multi bib filter. Please see: pandoc-ext/multibib#1

Is there any way to bypass this validation?

Thank you.

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Activity

  1. added
    bug
    on Jan 28, 2023
  2. cscheid commented on Jan 29, 2023

    @cscheid
    Member

    You can add validate-yaml: false to your front matter.

    This isn't a bug, though - YAML validation is too important for our users, and since Lua filters can access arbitrary metadata, there's no other alternative for us. Perhaps you could consider changing the way the filter works by accessing multibib from a separate field.

  3. removed
    bug
    on Jan 29, 2023
  4. bcdavasconcelos commented on Jan 29, 2023

    @bcdavasconcelos
    Author

    Thank you.

  5. added
    support
    on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    support

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions