Skip to content

Demo: in-text citations and annotations - #259

Merged
dknauss merged 1 commit into
mainfrom
demo/citations-annotations
Nov 6, 2026
Merged

dknauss merged 1 commit into
mainfrom
demo/citations-annotations

Conversation

@dknauss

@dknauss dknauss commented Nov 6, 2026

Copy link
Copy Markdown
Owner

The Playground demo had no example of in-text citations or annotations. This adds one, after the Chicago example: three annotated books (Illich, Grafton, Eisenstein) with Show annotations on, and a paragraph that cites them with Cite links. One of the links has a locator (chap. 3). They're saved exactly as the format saves them, so the editor treats them as its own, and the example's description walks through switching to IEEE and choosing Update citations.

demo-content.php now renders an example's optional prose paragraphs before its block. The blueprints are rebuilt with npm run playground:build.

Checked in a local Playground with blueprint-main.json (the current main build):

  • 3 citation links, each pointing at an existing ref-… entry.
  • Annotations shown under each entry.
  • 0 invalid blocks, and the post isn't dirty after load.

Older releases, which have no annotation support, ignore showAnnotations and annote, and the citations are ordinary links there.


Generated by Claude Code

The Playground demo had no example of the Cite format or of annotations.
Add one after the Chicago example: three annotated books with Show
annotations on, and a paragraph citing them with Cite links (one with a
locator), saved as the format saves them. demo-content.php renders an
example's optional "prose" paragraphs before its block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WPtgA1cnwP9mYKwaWniaFS
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.64%. Comparing base (c6fe690) to head (b73359a).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #259   +/-   ##
=========================================
  Coverage     88.64%   88.64%           
  Complexity       67       67           
=========================================
  Files           102      102           
  Lines         10968    10968           
  Branches        962      962           
=========================================
  Hits           9723     9723           
  Misses          447      447           
  Partials        798      798           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dknauss
dknauss merged commit ba065eb into main Nov 6, 2026
22 checks passed
@dknauss
dknauss deleted the demo/citations-annotations branch November 6, 2026 17:04
@dknauss dknauss mentioned this pull request Nov 6, 2026
dknauss added a commit that referenced this pull request Nov 7, 2026
In-text and margin citations with Update citations after a style change
(#256); annotated bibliographies (#258); h-cite microformats (#257); full
citation records in Yoast SEO's graph and Yoast context fix (#252, #254);
RIS journal abbreviations; sentence case in Harvard; the Playground demo
example of citations and annotations (#259).


Claude-Session: https://claude.ai/code/session_01WPtgA1cnwP9mYKwaWniaFS

Co-authored-by: Claude <noreply@anthropic.com>
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