Ranea.org

Watts Martin’s Web Space

BBEdit Markdown Extension Package

Download (v1.03, 2011-08-21)

This adds new commands for working with Markdown documents to BBEdit—a few formatting convenience commands, as well as multiple transformations.

This package expects to be in ~/Library/Application Support/BBEdit/Packages/ and has not been tested with Dropbox support.

Helper Commands

Transformation Commands

Paste as Markdown

This takes “rich text” on the clipboard and pastes it into a BBEdit document as Markdown. (The nerdy details: it converts from RTF to HTML and then from HTML to Markdown, then runs a bit of cleanup on the output.)

MultiMarkdown Support

Two convenience scripts are also included for MultiMarkdown support. They require MultiMarkdown 3 to be installed separately and available at /usr/local/bin/multimarkdown, which is where the installer package will put it by default. They do what you’d expect them to do from their names:

The MultiMarkdown commands create an entirely new untitled document with the language set appropriately, rather than replacing the selection.

Text Filters

All of the scripts used by this extension package are available directly as Text Filters, with the Unix-scripty names of html2text, markdown, mmd, mmd2tex and smartypants.

License

This package includes John Gruber’s Markdown and SmartyPants and Aaron Swartz’s html2text scripts. Those scripts are copyright to their respective authors.

The small bits of script I’ve done are Copyright (c) 2011 Watts Martin. Redistributions in any form must retain the above copyright notice, the attribution for included packages (with links), and the following disclaimer.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

(Whew.)

Changelog