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

strip newlines from twitter embed #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkiser
Copy link

@mkiser mkiser commented Oct 26, 2017

Not sure if this is the best way of handling it, but it worked for me. Background on this is that Jekyll was choking on the newline when a tweet was included as part of a list item, causing the list to close early and leaving a dangling </div>

The Twitter embed comes back with \n between the blockquote and the script. For whatever reason Jekyll hated this. ¯_(ツ)_/¯

Not sure if this is the best way of handling it, but it worked for me. Background on this is that Jekyll was choking on the newline when a tweet was included as part of a list item, causing the list to close early and leaving a dangling `</div>`

The Twitter embed comes back with `\n` between the blockquote and the script. For whatever reason Jekyll hated this. ¯\_(ツ)_/¯
@mkiser
Copy link
Author

mkiser commented Oct 26, 2017

Upon further testing, this is obviously not the correct way of fixing this. You'd additionally need to remove # frozen_string_literal: true from the top of the file.

@mkiser
Copy link
Author

mkiser commented Jun 7, 2018

Yeah, I don't know correct way to fix this (not much of a developer anyhow, and certainly don't know much about the Ruby way). Feel free to close or update or whatever.

@rob-murray
Copy link
Owner

No worries, I will try and get this fixed soon - suspect @blimey85 is correct here 👍

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.

3 participants