Line breaks missing from embedded tweets

Ok, it seems like this should be doable by getting the html tweet body supplied by twitter and interpolating that directly into the template. Is that correct? I don’t think mustache will allow us to do this except by including raw html.

As for the formatting, it appears twitter uses white-space: pre-wrap;, which is usually applied to embedded tweets with a script. The options I can see are:

  • pre tag
  • may break wrapping
  • styling
  • overriding css could break tweet display
  • escape all whitespace
  • including exotic unicode space chars?

Alternatively, you might choose to leave the twitter engine styling as-is, and let users enable ‘rich’ oembed type if they want more extensive styling. If I understand correctly, whitelisting is currently done by editing a ruby file; would it be helpful if I were to try and shift that to a configurable option, and allow enabling different oembed or opengraph types on a per-site basis?