Repository navigation
Add a "Repeated authors" block setting (repeatedAuthorMark) - #268
Merged
Merged
Conversation
A new block attribute, repeatedAuthorMark (style, dash, underscore, none), chooses how an entry by the same authors as the entry before it begins: - style (default): the style's own rule, MLA 9's hyphens or OSCOLA 5's double em dash, so existing blocks save byte-for-byte as before; - dash: Chicago 17's 3-em dash (three U+2014), offered by both Chicago styles (Chicago 18 §13.72 now prefers repeating the names); - underscore: NBR 6023:2002's six underscores, offered by ABNT (dropped in the 2018 revision); - none: always write names out, even in MLA and OSCOLA. Which style offers which mark is repeatedAuthorMarks in styles.json; a mark the style does not offer falls back to style. Names are matched as strictly as MLA's, written the way the bundled Chicago and ABNT CSL write them. JS save() and the PHP port agree (new save-parity fixtures). The sidebar shows a "Repeated authors" select for styles with a choice; the settings PATCH, read model, abilities, and wp borges list carry it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
…tting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
…und demo - Chicago Notes-Bibliography example: repeatedAuthorMark "dash", so the second Borges entry starts with Chicago 17's 3-em dash. - ABNT example: a second Freyre book and repeatedAuthorMark "underscore" (NBR 6023:2002's line); the description also notes that JSON-LD keeps "de" in Sérgio Buarque de Holanda (1.19.1, #248). - MLA example: says the sidebar setting can write the names out. - OSCOLA example: calls out the roman titles in its tables and the SI number (1.19.1, #246, #247). - Features list: a Repeated authors entry. Blueprints regenerated with npm run playground:build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #268 +/- ##
============================================
- Coverage 88.51% 88.42% -0.09%
Complexity 67 67
============================================
Files 104 105 +1
Lines 11168 11313 +145
Branches 1007 1032 +25
============================================
+ Hits 9885 10004 +119
- Misses 444 446 +2
- Partials 839 863 +24 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
Dan saw no hyphens in the MLA example: they are only on the published page, because the editor list keeps full names. The MLA description now says so in plain terms, names the entries that get them, and links to the published block (new anchor demo-mla-9). The Chicago and ABNT descriptions say the same, and ABNT links to its block (demo-abnt). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
6 of 8 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
dknauss
marked this pull request as ready for review
November 9, 2026 05:41
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Resolve the CHANGELOG (both Added entries kept), regenerate the Playground blueprints, and refresh the line counts in docs/current-metrics.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Dan · project thread
Closes #242.
Summary
What changed? A new block attribute,
repeatedAuthorMark, sets how an entry by the same authors as the entry before it begins. It appears in the sidebar as Repeated authors, just under Citation Style.style(default)‑‑‑, OSCOLA 5's——, full names everywhere elsenonestyleelsewhere)dash———.(three U+2014)underscore______.repeatedAuthorMarksinincludes/styles.json. A mark the style doesn't offer (saydashleft over after switching to APA) falls back tostyle. Switching back to Chicago brings the dash back.screen-reader-text, and only the saved bibliography carries the mark.FAMILY, Given;, and 4 or more authors become the first plus "et al.". Names with particles or suffixes are skipped, because citeproc decides how they're capitalized.src/lib/repeated-authors.jsand its PHP port is inincludes/save-display.php. Five new save-parity fixtures pin them to each other.PATCH(it's validated, and a bad value gets400), the read model and abilities, andwp borges list --fields.docs/csl-styles.md,SPEC.md, both readmes,docs/rest-write-routes.md,docs/wp-cli.md, the CHANGELOG, anddocs/current-metrics.md.Why? Chicago 18 (§13.72) and NBR 6023:2018 now ask for the names to be repeated, but some writers and journals still use the older marks. Some readers find MLA's and OSCOLA's marks unclear.
Existing blocks / deprecation: a block without the attribute counts as
style, sosave()writes the same bytes as before. The deprecation chain ignores the setting, because onlysave.jspassesrepeatedAuthorMarkSetting. No deprecation entry is needed, and all existing deprecation and save-parity tests pass unchanged.How the issue's open questions were settled:
———, ed.form isn't applied. Editor-only entries keep their names.dashalso applies to Chicago Author-Date.bibliography_builder_output_defaultsfilter doesn't carry this setting yet. That could be a small follow-up.@sincenotes say 1.20.0, since this is a new feature after 1.19.1.Validation
npm run lint:jspassesnpm run lint:csspassesnpm run lint:i18npasses when source strings or translation docs changenpm run testpasses (1383 tests), pluscomposer test:php(752),composer lint:php,typecheck:js,format:check, andverify-metrics.shnpm run buildsucceedsChecklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01WPtgA3LdeYWKQDeeEStxi9