OPML-to-Markdown Conversion Script
In this post, I’d like to share a script I wrote to help with converting Outline Processor Markup Language (OPML) documents to Markdown. If you read the recent update on my Linux migration plans, you may recall that I identified OPML files (created in OmniOutliner) as an area where some work was going to be required. This script is the result of my efforts in this area.
<aside>Before I continue, I want to very briefly point out that this script was written to help in my specific use case. It’s quite likely that you’ll want or need to adjust the behaviors of this script in order to meet the needs of your particular use case.</aside>
This script takes advantage of two tools: pandoc
and sed
. pandoc
is a third-party tool that is easily installed on Ubuntu using apt
or apt-get
. (I haven’t checked other Linux distributions, but I suspect packages are available there as well.) pandoc
is also available for OS X, making it a very handy cross-platform tool to have in my toolchest. (See this post for more information on how you can use pandoc
in a Markdown-heavy environment.) sed
, of course, is a Continue reading