Skip to content

LEAN-4643: add ability to change citation style - #242

Open
mbetamony wants to merge 1 commit into
masterfrom
LEAN-4643
Open

mbetamony wants to merge 1 commit into
masterfrom
LEAN-4643

Conversation

@mbetamony

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 17, 2025 11:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds an optional citationStyle attribute to the ManuscriptAttrs interface to allow customization of citation formatting.

  • Introduces citationStyle as an optional string field on manuscripts.
  • Enables downstream code to read and apply a user-specified citation style.
Comments suppressed due to low confidence (3)

src/schema/nodes/manuscript.ts:31

  • Add a JSDoc comment above citationStyle explaining its purpose and listing expected style identifiers or format (e.g., CSL style keys).
citationStyle?: string

src/schema/nodes/manuscript.ts:31

  • Consider defining an enum or union type for supported citation styles instead of a raw string to enforce valid values and improve type safety.
citationStyle?: string

src/schema/nodes/manuscript.ts:31

  • Add unit or integration tests to verify that citationStyle is correctly serialized, stored, and applied when rendering citations.
citationStyle?: string

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

Successfully merging this pull request may close these issues.

2 participants