Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(InstagramEmbed): position slices for caption content *inside* the embed #1773

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

tim-evans
Copy link
Collaborator

Tests were previously incorrectly having the slice of the instagram embed run over the embed itself. I failed to catch this in the snapshot tests, but encountered this when testing embedding by pasting in the Instagram embed code directly into a text editor and it rendering as nothing. 😭

Relevant lines that fix the code are:

https://github.com/CondeNast/atjson/blob/ad4d15371d997a4978879588e9f90e796c5b7adb/packages/%40atjson/source-html/src/converter/social-embeds.ts

@tim-evans tim-evans merged commit 8d6d61c into main Jun 24, 2024
3 checks passed
@tim-evans tim-evans deleted the ig branch June 24, 2024 18:16
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