Articles tagged 'nokogiri'
-
Migrating your blog posts to Markdown with Upmark and Nokogiri
February 3, 2012
This post was originally published in the Rambling Labs Blog on February 3, 2012.
As I said in my last post, for our new site, we changed our blog engine from WordPress to the Postmarkdown gem. At the end of that post, I mentioned that we had to migrate the old posts from WordPress to Markdown.
To do this, we built a ruby script using the Upmark gem and the Nokogiri gem. Nokogiri is used for HTML and XML parsing, among other things, while Upmark is used to generate Markdown from a given HTML.
First, we exported our old blog posts from WordPress to an XML file that looks like this:
<?xml version="1.0" encoding="UTF-8" ?> <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. --> <!-- ... --> <rss
-
The nokogiri gem and the "libxslt is missing" error
October 17, 2011
This post was originally published in the Rambling Labs Blog on October 17, 2011.
I ran into this issue today. But this one’s easy. Just run the following command and install the gem again:
apt-get install libxslt1.1 libxslt1-dev libxslt-ruby
That’s it! It should work fine now :).