Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Add substitution #122

Open
bdarcus opened this issue May 20, 2023 · 0 comments
Open

Add substitution #122

bdarcus opened this issue May 20, 2023 · 0 comments
Milestone

Comments

@bdarcus
Copy link
Owner

bdarcus commented May 20, 2023

This is the default config, and by far the most common configuration we see in existing 1.0 styles:

  substitute:
    author:
      - editor
      - translator
      - title # this still needs work; it assumes no formatting

export type Substitute = "editor" | "translator" | "title";

It should be straightforward enough: modify formatContributors to do the substitution, and then keep track of having substituted (in the ProcHints?).

@bdarcus bdarcus added this to the v0.2 milestone May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant