{"id":2009,"date":"2011-07-27T16:17:20","date_gmt":"2011-07-27T20:17:20","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/?p=2009"},"modified":"2013-03-18T13:25:18","modified_gmt":"2013-03-18T17:25:18","slug":"multimarkdown-in-marsedit","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/2009\/multimarkdown-in-marsedit","title":{"rendered":"MultiMarkdown In MarsEdit"},"content":{"rendered":"<p>For a very long time, <a href=\"http:\/\/daringfireball.net\/projects\/markdown\/\">MarsEdit<\/a> has included built-in support for processing text with\u00a0<a href=\"http:\/\/daringfireball.net\/projects\/markdown\/\">Markdown<\/a>, so users who publish in that text-based format can see in MarsEdit&#8217;s preview window how the post will look after it&#8217;s published.<\/p>\n<p>It&#8217;s becoming more and more common for folks who use and love Markdown to expect it to behave the way a popular superset of the language, <a href=\"http:\/\/fletcherpenney.net\/multimarkdown\/\">MultiMarkdown<\/a>, behaves.<\/p>\n<p>When I asked on Twitter how people would feel about MarsEdit replacing the standard default Markdown filter with one that does MultiMarkdown processing instead, the responsive was enormously enthusiastic: people want MultiMarkdown.<\/p>\n<p>Because I believe that for all MarsEdit users who currently enjoy Markdown support, changing to MultiMarkdown will either be a non-issue or a god-send, I plan to make this switch in an update soon.<\/p>\n<p>While I was looking into the current state of MultiMarkdown I learned that since I last looked into it, is has transformed from a Perl-script version like the original Markdown, into a <a href=\"https:\/\/github.com\/fletcher\/peg-multimarkdown\">blazingly fast, pure C version<\/a>. This intrigued me, because it would be fantastic if while upgrading MarsEdit&#8217;s Markdown support to support more features and please more people, it could also become orders of magnitude faster.<\/p>\n<p>The first hiccup I noticed when examining the source code is that it depended heavily on an LGPL open source library called <a href=\"http:\/\/www.gtk.org\/\">GLib<\/a>. While the LGPL license would be acceptable to bundle within a standalone tool in MarsEdit, it feels like overkill, and frankly, I&#8217;d rather have a standalone MultiMarkdown binary that doesn&#8217;t require any outside dependencies.<\/p>\n<p>So that&#8217;s what I spent the last day doing.<\/p>\n<p><a href=\"https:\/\/github.com\/danielpunkass\/peg-multimarkdown\/compare\/6cef567...ce4ff75\">My fork of MultiMarkdown<\/a> adds an Xcode project, and a small but important number of code changes to substitute for what GLib was formerly providing. The result is a standalone x86_64\/i386 binary that accomplishes MultiMarkdown filtering on any Mac running 10.6 or higher.<\/p>\n<p><strong>If you want to test this fancy new MultiMarkdown filter in MarsEdit:<\/strong><\/p>\n<ol>\n<li>Quit MarsEdit<\/li>\n<li>Download\u00a0<a title=\"MultiMarkdownBetaV2.zip\" href=\"http:\/\/www.red-sweater.com\/blog\/wp-content\/downloads\/2011\/07\/MultiMarkdownBetaV2.zip\">MultiMarkdown Beta Filter<\/a><\/li>\n<li>Unzip, and <strong>copy the folder <\/strong>named &#8220;MultiMarkdownBeta&#8221;\u00a0to:\n<p>[Home] -&gt; Library -&gt; Application Support -&gt; MarsEdit -&gt; TextFilters<\/p>\n<\/li>\n<li>Relaunch MarsEdit<\/li>\n<\/ol>\n<p>Your MarsEdit preview window should now have a &#8220;MultiMarkdown&#8221; option in the preview window text filter popup. Select MultiMarkdown and see how it works for you as you preview Markdown-formatted posts in HTML Text mode.<\/p>\n<p>I expect this version will have some bugs, which is part of the motivation for getting the adventurous among you to give it a try. The best way to report bugs is \u00a0by <a href=\"http:\/\/www.red-sweater.com\/support\/\">email or a message in the support forums<\/a>. But if you just have low-key comments to make, this blog post would be an appropriate location as well. Thanks for your help!<\/p>\n<p><strong>Update, July 28: <\/strong>I&#8217;ve made major performance and correctness changes in the past day, so if you are helping to test the new MultiMarkdown filter, be sure to <a href=\"http:\/\/www.red-sweater.com\/blog\/wp-content\/downloads\/2011\/07\/MultiMarkdownBetaV2.zip\">grab the latest version<\/a> and update the copy in your MarsEdit TextFilters folder.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a very long time, MarsEdit has included built-in support for processing text with\u00a0Markdown, so users who publish in that text-based format can see in MarsEdit&#8217;s preview window how the post will look after it&#8217;s published. It&#8217;s becoming more and more common for folks who use and love Markdown to expect it to behave the [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-2009","post","type-post","status-publish","format-standard","hentry","category-marsedit"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/2009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/comments?post=2009"}],"version-history":[{"count":14,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/2009\/revisions"}],"predecessor-version":[{"id":2862,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/2009\/revisions\/2862"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=2009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=2009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=2009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}