Skip to content

fix(export): keep footnote and caption links, mentions, emphasis, and images - #22

Merged
jiro-by-nori[bot] merged 1 commit into
mainfrom
fix/export-footnote-content
Nov 13, 2026
Merged

jiro-by-nori[bot] merged 1 commit into
mainfrom
fix/export-footnote-content

Conversation

@jiro-by-nori

@jiro-by-nori jiro-by-nori Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Root cause of missing links/images in the @NoriAgent X Article for https://12gramsofcarbon.com/p/agentics-using-ai-should-be-joyful: exportPostArtifact flattened each div.footnote with .text() (dropping the footnote's links, its MentionToDOM name, <em>, and any images inside it) and each image caption with .text() (dropping caption links).

Now a footnote's blocks are kept (first paragraph prefixed [n]; X Articles have no in-page anchors), so the later mention and image steps handle them, and captions keep their markup.

Verified against the live post: 8 → 11 images; restores footnote 5's link, the caption YouTube link, the Ritam Mehta mention, and footnote/caption emphasis.

Tests: npm test 76/76, lint clean, dist recompiled.

… images

Footnotes were flattened with .text(), dropping links, mention names,
emphasis, and images inside footnotes; captions likewise lost their links.
Keep their markup so the serializer and the image/mention steps see it.
@jiro-by-nori
jiro-by-nori Bot merged commit a6f9b2d into main Nov 13, 2026
4 checks passed
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