Setting up Github Markdown previews in BBEdit
-
Install redcarpet gem, as used by Github (see details here)
$ gem install redcarpet
-
Change directory to the BBEdit application support location, and create the Packages directory if it isn't already there:
$ cd ~/Library/Application\ Support/BBEdit/ $ [ ! -d Packages ] && mkdir Packages
-
Enter the package directory and clone the github repo to an appropriately named directory:
$ cd Packages $ git clone https://github.com/gavinaiken/bbedit-scripts.git markdown-github.bbpackage
-
Optionally, if you want to make the Github Flavored Markdown preview style the default for all markdown files, you can add symlinks to the css and filter files using the included script, i.e.:
$ cd ~/Library/Application\ Support/BBEdit/Packages/markdown-github.bbpackage $ ./create-symlinks.sh
-
Now use
Markup > Preview in BBEdit
on any markdown.