This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# Original File: https://github.com/mojombo/jekyll/blob/master/lib/jekyll/migrators/wordpress.rb | |
# Modified by Yu-Cheng Chuang <ducksteven@gmail.com> | |
# Licensed under MIT License (same as the original file) | |
# This version of wordpressdotcom.rb is compatible | |
# with the real-world Wordpress.com export file, which: | |
# | |
# - Makes paragraphs (<p>) and line breaks (<br>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'fileutils' | |
require 'date' | |
require 'yaml' | |
require 'uri' | |
require 'rexml/document' | |
include REXML | |
doc = Document.new File.new(ARGV[0]) |
NewerOlder