Skip to content

fix(export): export image gallery photos as image markers - #18

Merged
nori-sessions[bot] merged 1 commit into
mainfrom
fix/export-image-galleries
Oct 1, 2026
Merged

nori-sessions[bot] merged 1 commit into
mainfrom
fix/export-image-galleries

Conversation

@nori-sessions

@nori-sessions nori-sessions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Problem

post export dropped Substack image galleries (div.image-gallery-embed). The photos live only in data-attrs, and the serializer keeps only p/ul/ol/h/blockquote. The 4 event photos in https://12gramsofcarbon.com/p/tech-things-and-agentics-september did not reach the X Article.

Fix

Parse gallery.images[].src and replace the gallery with one [[NORI_IMAGE:n]] marker per photo, in order. Keep the gallery caption as an italic paragraph. Remove a gallery with no valid photos.

Proof

  • New test for a 2-photo gallery with caption. vitest (syndication-export) 12/12, tsc, eslint pass.
  • Live export of the September post: 7 images (3 before + 4 gallery). The @NoriAgent X Article built from it has all 7, in source order, with 0 unresolved markers.

Substack image galleries keep their photos only in data-attrs, so the
article export dropped them. Emit one [[NORI_IMAGE:n]] marker per photo
and keep the gallery caption.
@nori-sessions
nori-sessions Bot merged commit 25feed1 into main Oct 1, 2026
4 checks passed
@nori-sessions
nori-sessions Bot deleted the fix/export-image-galleries branch October 1, 2026 22:20
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.

1 participant