Skip to content

v1.19.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 00:46
898d5e4

Added

  • In-text and margin citations. A new Cite control in the rich-text toolbar links a short citation in any paragraph, heading, list item, or quote to an entry in a bibliography on the same post, so it works in a theme's margin-note paragraph style (a sidenote or gloss) as well as in running text. It lists every entry of every bibliography in the post, searchable by author, year, or title, with an optional page or other locator. The short form follows the bibliography's style: a Chicago short note ("Illich, Tools for Conviviality, 12") for Chicago notes and OSCOLA, "(Illich 1973, 12)" for author-date styles ("(Illich 12)" in MLA), and "[2]" for IEEE and Vancouver. The citation is a plain link to the entry's #ref-… anchor, so it works with no script on the page and survives WordPress's HTML filtering for every role; it is ordinary post text you can edit after inserting it. Selected text can be kept as the link text or replaced. The bibliography block's saved markup is unchanged. A link breaks if its entry is deleted (even if pasted again) or its block is duplicated, since those entries get new IDs; style changes, re-sorting, and edits keep them.

    Citations can be brought up to date after a style change. Each citation saves its page, chapter, or section as data-locator, and the Cite popover fills it in again when reopened. The bibliography's sidebar gains a "Citations in this post" panel that counts the citations pointing at it and has an Update citations button; changing the style also offers Update citations in a notice. The update rewrites every citation the editor wrote, in any block, nested ones included, in the current style and numbering, keeping its locator, as one step you can undo. Citations you reworded are left alone unless you tick "Also replace citations I reworded". Citations made before this change have no saved locator; it is read back from their text when it matches a short form, and saved. Citations whose entry is gone are left alone and counted. With two citations side by side ("[1][2]"), updating or removing one no longer changes the other.

  • Annotated bibliographies. The entry editor and manual entry gain an "Annotation" field for your own note on a work: what it argues, why it matters, how you used it. Paragraphs are separated by a blank line, and the note is stored as plain text in the entry's CSL annote variable ("reader's notes about the item content" in CSL 1.0.2), so editing it never resets a hand-edited display line. A new block setting, "Show annotations" (off by default), prints each note under its entry as one <p class="bibliography-builder-annotation"> per paragraph, indented to line up with the entry's wrapped lines, and also in newsletters and feeds. Notes stay out of the copied citation text, plain-text copies, COinS, and JSON-LD. CSL-JSON keeps annote, BibTeX writes annote, BibLaTeX annotation, and RIS an N1 line (in the per-entry Cite / Export RIS only while notes are shown). BibTeX annote and BibLaTeX annotation import as annotations with their paragraphs kept, as does annote in pasted CSL-JSON; RIS N1 stays a note and abstracts stay abstracts. With the setting off, or with no annotations, a block saves exactly what it did before, so existing blocks need no deprecation. Annotations are part of the entry's data, so the CSL-JSON and BibTeX exports carry them even while they are hidden. The REST read model, the write routes, and wp borges list gain showAnnotations.

  • Microformats for each entry. As a page renders, each bibliography entry becomes an h-cite, so IndieWeb tools (webmention receivers, readers, and other microformats parsers) read the bibliography as a list of citations: its title, each author as an h-card (with an ORCID iD as its link), the date to the precision the record has, the DOI as https://doi.org/…, the URL, the journal or book it is in, and the publisher. The values sit in hidden <data> elements, so the visible entry and what screen readers announce are unchanged. Published posts get it without being re-saved, and feeds and email leave it out. The new bibliography_builder_enrich_microformats filter turns it off.

  • Journal abbreviations in the RIS export. The per-entry Cite / Export RIS and the bibliography's RIS download now carry a record's journal abbreviation (CSL container-title-short, or Zotero's journalAbbreviation) as a J2 line after the journal's full title, where Zotero, Mendeley, and EndNote read it. A record without one has no J2 line.

  • Sentence case in Harvard. Cite Them Right asks for titles with only the first word and proper nouns capitalized, the subtitle included ("Cite them right: the essential referencing guide"), so Harvard now prints titles of works and of the book a chapter is in the way APA and Vancouver do, from a converted copy; journal names keep their capitals, and the stored title never changes. The "Keep title capitalization as entered" checkbox covers the proper nouns the conversion can't recognize. Existing blocks keep their stored text until their entries are next formatted.

Changed

  • Full citation records in Yoast SEO's graph. With Yoast SEO, the Article's (or WebPage's) schema.org citation now carries each cited work's whole record, the same one the bibliography's ItemList has: authors, DOI, ISBN, journal, volume, pages, publisher, and sameAs links. It used to carry only the type, @id, and title, and Yoast's schema aggregator and NLWeb (both the crawler and its WordPress plugin's MCP answers) read only Yoast's graph, so a local trace with nine works found 12 of 78 field values reached them; now all 78 do. Yoast's script grows accordingly (7.6 KB to about 29 KB on the test page). The bibliography_builder_yoast_citation_records filter returns to the short references when it returns false. Rank Math and the WebPage node Borges prints without an SEO plugin keep the short references.

  • The bibliography heading is start-aligned. It was centered by the block's stylesheet, which sat oddly above left-aligned entries and next to a theme's left-aligned section headings. The editor preview and the email output follow. A heading you had styled yourself is unaffected.

  • The Cite / Export RIS change alters saved markup for entries with a journal abbreviation, so the block gains a deprecation for the 1.18.0 shape (tests/fixtures/deprecations/v18-deprecated.html). Existing blocks stay valid.

  • MLA's repeated-author hyphens, OSCOLA's double em dash, and OSCOLA's date order for one author's works are now set per style in includes/styles.json (repeatedAuthors, chronologicalAuthors), which the editor and the PHP port of save() both read, instead of being written into the code by style name. Output is unchanged.

  • The Playground demo page now has one example bibliography per citation style (nine, adding Chicago Author-Date, MLA 9, Harvard, Vancouver, OSCOLA with its tables of primary sources, and ABNT), and each names the block settings it shows: per-entry Cite / Export, every machine-readable output on and off, heading levels from Paragraph to H4 and an empty heading, and a block font size. The Cite / Export example links straight to its place on the published page. The paste samples add RIS records and a CSL-JSON document, so every input format is there to try.

Fixed

  • Citations in Yoast SEO graphs built outside the page request. Borges adds the cited works to Yoast's Article (or WebPage) piece as schema.org citation, but it looked the post up from the main query, so a graph Yoast built for another caller came without them. NLWeb's WordPress plugin is one such caller: it asks Yoast for each post's graph (YoastSEO()->meta->for_post()) to answer agents over MCP, and its answers carried no citations. Borges now reads the post from the context Yoast passes with each piece. The page's own JSON-LD and Yoast's schema aggregator were not affected. The bibliography_builder_json_ld_page_url filter gains the post as a second argument.

What's Changed

  • markup-value: add GPT-6.1 (Codex) to the language-model results by @dknauss in #233
  • Add style reference checks and a style verification plan by @dknauss in #237
  • Show every style and block setting in the Playground demos by @dknauss in #238
  • Follow-ups to #236: style rules in styles.json, RIS J2, Harvard sentence case, live abbreviation check by @dknauss in #249
  • Left-align the bibliography heading by default by @dknauss in #251
  • SPEC: plan annotated bibliographies, margin citations, and h-cite by @dknauss in #255
  • Mark bibliography entries as h-cite microformats by @dknauss in #257
  • Add annotated bibliographies by @dknauss in #258
  • Add in-text and margin citations by @dknauss in #256
  • Demo: in-text citations and annotations by @dknauss in #259
  • Read the post from Yoast's context when adding citations by @dknauss in #252
  • Put full citation records into Yoast SEO's graph by @dknauss in #254
  • Trace citation metadata through Yoast SEO and NLWeb by @dknauss in #253
  • Release 1.19.0 by @dknauss in #260

Full Changelog: v1.18.0...v1.19.0