Skip to content

v1.21.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 23:44
01eaa2f

Added

  • Storybook for the editor components (development only). npm run storybook shows the structured citation editor, the reorder controls, the editor notices, the heading alignment menu, and the repeated-authors setting in their different states, such as a journal article, a book, and manual entry, or each style's repeated-author choices, without a WordPress site. npm run test:storybook builds it and renders every story in Chromium, failing on an error or an axe accessibility violation; CI runs it in the a11y job, and on main deploys the checked build to GitHub Pages (the README's Storybook badge, https://dknauss.github.io/Borges/storybook/). Nothing ships in the plugin: the release ZIP copies only its runtime files. See docs/storybook.md.

Changed

  • Heading alignment moved to the block toolbar. The "Heading Alignment" sidebar setting from 1.20.0 is now an "Align heading" menu in the block toolbar, where core blocks such as Heading and Paragraph keep text alignment, which also shortens the block's sidebar. It shows while the block has a visible heading and offers the same two choices, Center (the default) and Start. Only the control moved: the setting is still stored as headingAlign, saved markup is unchanged, and the write routes, read routes, and wp borges list work as before. Core's typography.textAlign support was considered and not used, since it would store the alignment differently and its support key has changed names across the WordPress versions Borges supports.

Fixed

  • Bibliographies sent by email no longer show bullets. WordPress.com and Jetpack newsletters build their emails from the saved post, without the block's stylesheet or the plugin's email filters, so unordered bibliographies arrived as bulleted lists with a 40px indent. Saved unordered lists (every style except the numbered IEEE and Vancouver, and each of OSCOLA's tables) now carry style="list-style:none;padding-left:0;margin-left:0" inline. WordPress.com's email renderer puts its own list styles first, so these win: no bullets, flush left. Numbered lists keep their numbers. On the web nothing changes, since the stylesheet already sets the same, and the <li>s carry no inline style, so the hanging indent is the site's to set. The PHP save port, used by the write routes, writes the same markup. Existing posts keep valid blocks through a deprecation and pick up the change when next saved in the editor; until then, email and feeds the site sends itself (bibliography_builder_portable_markup()) add the same style to their lists.

What's Changed

  • Move heading alignment to the block toolbar by @dknauss in #286
  • Add Storybook for the editor components, with a story a11y check in CI by @dknauss in #287
  • Roadmap: more Storybook stories by @dknauss in #289
  • Save unordered bibliographies with an inline no-bullet style for email (1.21.0) by @dknauss in #288

Full Changelog: v1.20.0...v1.21.0