From 462b34f1149296f5adf26afad67dca7129c1bd75 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Thu, 5 Feb 2026 15:30:16 +0000 Subject: [PATCH] Add completed task-11: Fix blog post rendering issues Co-Authored-By: Claude Opus 4.5 --- ...ask-11 - Fix-blog-post-rendering-issues.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 backlog/tasks/task-11 - Fix-blog-post-rendering-issues.md diff --git a/backlog/tasks/task-11 - Fix-blog-post-rendering-issues.md b/backlog/tasks/task-11 - Fix-blog-post-rendering-issues.md new file mode 100644 index 0000000..c2f386f --- /dev/null +++ b/backlog/tasks/task-11 - Fix-blog-post-rendering-issues.md @@ -0,0 +1,43 @@ +--- +id: task-11 +title: Fix blog post rendering issues +status: Done +assignee: [] +created_date: '2026-02-05 15:29' +updated_date: '2026-02-05 15:30' +labels: [] +dependencies: [] +priority: high +--- + +## Description + + +Fix various rendering issues in blog posts imported from Squarespace: +- WordPress [caption] shortcodes appearing as raw text +- HTML entities like — not being decoded +- Duplicate featured images appearing in blog post content + + +## Acceptance Criteria + +- [x] #1 [caption] shortcodes converted to proper HTML figure/figcaption elements +- [x] #2 HTML entities decoded in excerpts (em-dash, smart quotes, etc.) +- [x] #3 Featured images not duplicated in blog post content +- [x] #4 CSS styling added for figure captions + + +## Implementation Notes + + +Completed 2026-02-05. Changes made to frontend/scripts/parse-squarespace-xml.js: +- Added convertCaptionShortcodes() to transform [caption]...[/caption] into figure/figcaption HTML +- Added decodeExcerptEntities() for HTML entity decoding in excerpts +- Added removeLeadingImage() to prevent featured image duplication +- Added CSS styling for .wp-caption figures in globals.css + +Commits: +- 204679b Fix blog excerpt rendering: remove shortcodes and decode HTML entities +- 64da557 Convert WordPress [caption] shortcodes to proper HTML figures +- da39ee7 Remove duplicate featured images from blog content +