jekyll-twitter-plugin icon indicating copy to clipboard operation
jekyll-twitter-plugin copied to clipboard

strip newlines from twitter embed

Open mkiser opened this issue 6 years ago • 3 comments

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 avatar Oct 26 '17 20:10 mkiser

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 avatar Oct 26 '17 22:10 mkiser

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.

mkiser avatar Jun 07 '18 17:06 mkiser

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

rob-murray avatar Aug 26 '18 20:08 rob-murray