Created
January 23, 2015 14:27
-
-
Save rakuishi/8a481e86075109012567 to your computer and use it in GitHub Desktop.
This file contains hidden or 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' | |
Dir.glob('content/archives/*.md').each do |filename| | |
content = File.open(filename).read; | |
content = content.gsub('<pre class="prettyprint">', '<pre><code>') | |
content = content.gsub('</pre>', '</code></pre>') | |
File.binwrite(filename, content) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment