jekyll-twitter-plugin
jekyll-twitter-plugin copied to clipboard
strip newlines from twitter embed
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. ¯_(ツ)_/¯
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.
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.
No worries, I will try and get this fixed soon - suspect @blimey85 is correct here 👍