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

Trying to create new metadata from metadata #232

Open
lakonis opened this issue Jun 20, 2023 · 0 comments
Open

Trying to create new metadata from metadata #232

lakonis opened this issue Jun 20, 2023 · 0 comments

Comments

@lakonis
Copy link

lakonis commented Jun 20, 2023

I am trying to create a new key author from existing key authors.

authors:

authors:
  - biography: >-
      my wonderfull biography
      following biography
    forname: Arnaud
    surname: Wormser
  - biography: >-
      my wonderfull biography
      following biography
    forname: Gérard
    surname: Genon

author:

author:
  - biography: >-
      my wonderfull biography
      following biography
    name: Arnaud Genon
  - biography: >-
      my wonderfull biography
      following biography
    name: Gérard Wormser

I understand the get_metadata function, but I don't see how to put new key:value into the metadata block.

I am new to panflute and to pandoc filters in general. I can write Python though, but I'm not familiar with the AST or JSON structure that is manipulated by pandoc filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant