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

Enhancement: Preserve line breaks in social media shares #38194

Open
alinclamba opened this issue Jul 4, 2024 · 3 comments
Open

Enhancement: Preserve line breaks in social media shares #38194

alinclamba opened this issue Jul 4, 2024 · 3 comments
Labels
[Feature] Publicize Now Jetpack Social, auto-sharing [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Social Issues about the Jetpack Social plugin [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@alinclamba
Copy link

alinclamba commented Jul 4, 2024

Impacted plugin

Jetpack, Social

What

When sharing posts to social media via Jetpack, the line breaks from the original post are not preserved. This results in the loss of formatting and can make posts harder to read.

Social Preview keeps the line breaks:

download

But the post when automatically shared to Facebook, will lose these line breaks.

Can we let Jetpack to preserve the line breaks from the original post when sharing to social media platforms such as Facebook.

The issue was initially reported by a user here:

And discussed on Slack here:

  • p1720004046966949/1720004038.239749-slack-C02JJ910CNL
@alinclamba alinclamba added the [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it label Jul 4, 2024
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Social Issues about the Jetpack Social plugin labels Jul 4, 2024
@pablinos
Copy link
Contributor

pablinos commented Jul 4, 2024

I think we use the excerpt which strips all the tags. We can probably change that to allow a minimal amount of tags, and then convert those to line breaks.

@jeherve jeherve added the [Feature] Publicize Now Jetpack Social, auto-sharing label Jul 4, 2024
@pablinos
Copy link
Contributor

pablinos commented Jul 5, 2024

I've put this in 'next up' as we can hopefully get to it pretty quickly. We should probably make a decision about whether to use the post title too.

With 'attached media' there wouldn't be a post title displayed, unless they were using something like Social Image Generator and the title was part of the image.

@gmjuhasz
Copy link
Contributor

gmjuhasz commented Jul 8, 2024

I had a change previously that's connected to this:
D142892-code
We have to check why this is not working anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Publicize Now Jetpack Social, auto-sharing [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Social Issues about the Jetpack Social plugin [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
4 participants