Skip to content

Instantly share code, notes, and snippets.

@nickwynja
Created January 23, 2012 18:27
Show Gist options
  • Save nickwynja/1664675 to your computer and use it in GitHub Desktop.
Save nickwynja/1664675 to your computer and use it in GitHub Desktop.
Markdown to HTML
set _me to "" & (path to me)
set AppleScript's text item delimiters to ":"
set packagePath to "" & text items 1 through -3 of _me
set AppleScript's text item delimiters to ""
set markdown to packagePath & ":Text Filters:markdown"
set smarty to packagePath & ":Text Filters:smartypants"
tell application "BBEdit"
run unix filter markdown with replacing selection
run unix filter smarty with replacing selection
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment