scottwb / jekyll-tweet-tag

Embed tweets in Jekyll/Octopress blogs using Twitter's oEmbed API.
75 stars 26 forks source link

Tried 2 additional require statements, still having issues #5

Open oeon opened 11 years ago

oeon commented 11 years ago

I've tried adding require 'digest/md5' and require 'net/http' to tweet_tag.rb but I'm still not able to use the plugin. Here's a snippet of what I'm seeing - any ideas?

Generating... Wrapping bad html in a PRE with class 'markdown-html-error'
|<div class='embed tweet'><blockquote class="twitter-tweet" align="right" width="350"><p>Best analogy I find so far for explain concept of ScrumMaster to new devops is Tooth Fairy.</p>&mdash; DevOps Borat (@DEVOPS_BORAT) <a href="https://twitter.com/DEVOPS_BORAT/statuses/159849628819402752">January 19, 2012</a></blockquote>
|<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></div>
 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| REXML cannot parse this block of HTML/XML:
| |<marukuwrap><div class='embed tweet'><blockquote class="twitter-tweet" align="right" width="350"><p>Best analogy I find so far for explain concept of ScrumMaster to new devops is Tooth Fairy.</p>&mdash; DevOps Borat (@DEVOPS_BORAT) <a href="https://twitter.com/DEVOPS_BORAT/statuses/159849628819402752">January 19, 2012</a></blockquote>
| |<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></div></marukuwrap>
| #<REXML::ParseException: #<REXML::ParseException: malformed XML: missing tag start
| Line: 2
| Position: 435
| Last 80 unconsumed characters:
| <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></>
rob-murray commented 11 years ago

Hey, This is an issue with Maruku rather than this plugin - the html returned is fine but Maruku throws an exception parsing it (along with many other tags). If you use the redcarpet markdown engine instead it will work fine.

Try adding this to your _config.yml and building your site again:

markdown: redcarpet