Posts tagged ‘markdown’

Cleaning up my Markdown table cleanup script

Way back in 2008, I wrote a script that made it easier to have nicely formatted tables in a Markdown1 document. The idea was to take a hastily written table like this, | Column 1 | Column 2 | Column 3 | |—|:—:|—:| | first | second | third | | column | column |…


Better Markdown folding in BBEdit

One of the few things I don’t like about BBEdit’s Markdown language module is the way it handles section folding. Here’s a simple example document, similar to the format I use when writing a report: Title: A simple report in Markdown Author: Dr. Drang Date: June 11, 2014 Client: Markdown Industries, LLC 1029 Race St…


Affiliate links via the iTunes Search API

I started writing these scripts a couple of weeks ago, and they weren’t supposed to take very long to put together. But I had to learn some things along the way, and then I got caught up in the statusbar cleaning scripts, so they kept getting delayed. Better late than never, though; I expect to…


The Markdown book and a bit of history

The day before I left on vacation, I got an email from David Sparks with a link to the PDF of the Markdown book he and Eddie Smith wrote. The freebie was nice, but even nicer was that David remembered that I don’t have an iPad and couldn’t use the iBooks version.1 No wonder everybody…


Markdown table scripts for BBEdit

The more you customize your editor, the harder it is to switch to another one. This is one of the reasons it took me so long to make the move away from TextMate; in six years of use, I’d accumulated a passel of commands, snippets, and specialty language definitions. The only thing more daunting than…


Photos and links in Markdown

I write my reports for work in Markdown and convert them into PDFs through a combination of MultiMarkdown, LaTeX, and some homemade scripts. I described the conversion process in a post last year. Today I’ll describe a new script that helps me do the writing itself in BBEdit. The format of a typical report looks…


Tidying Markdown reference links

Oscar Wilde—who would have been great on Twitter—said “I couldn’t help it. I can resist everything except temptation.” That’s my excuse for this post. Several days ago I got an email from a reader, asking if I knew of a script that would tidy up Markdown reference links in a document. She wanted them reordered…


Markdown reference links screencast

I made a short screencast of me using the Markdown reference link scripts I’ve shown in the last two posts. There’s no sound; the narration is typed on screen. A few notes: I show myself choosing the commands from the BBEdit scripts menu, but I always use the keyboard shortcuts when I’m actually writing. Similarly,…


More Markdown reference links in BBEdit

My last post described a set of scripts I use to add new reference links to a Markdown document in BBEdit. This one will show the scripts I use to reference links that are already in the document. There are two situations in which I need to reference a link that’s already in the file…


Markdown reference links in BBEdit

Markdown has two link styles: inline and reference. Inline links look like this: This is [an inline link](http://daringfireball.net/projects/markdown/syntax#link). where the link text in brackets is immediately followed by the URL in parentheses. Reference links look like this: This is [a reference link][ref]. Note how the URL does not directly follow the link text but is…