Skip to content

fix(render-biblio): handle authors as string instead of array#5183

Open
marcoscaceres wants to merge 3 commits intomainfrom
fix/authors-string-crash
Open

fix(render-biblio): handle authors as string instead of array#5183
marcoscaceres wants to merge 3 commits intomainfrom
fix/authors-string-crash

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

When localBiblio has authors as a string instead of an array, the join() call crashes and the entire reference section fails to render. Now shows an error with a helpful hint, and auto-corrects to an array so rendering continues.

Closes #4237

When localBiblio has authors as a string instead of an array, the
join() call crashes and the entire reference section fails to render.
Now shows an error with a helpful hint, and auto-corrects to an array
so rendering continues.

Closes #4237
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a crash in core/render-biblio when localBiblio entries mistakenly provide authors as a string (instead of an array), by reporting an error and coercing the value so references can continue rendering.

Changes:

  • Detect non-array ref.authors, report an error with a hint, and coerce it to an array.
  • Continue rendering the bibliography instead of failing on .join().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

"authors" field prevents reference section from being generated

2 participants