Created
January 23, 2012 18:27
-
-
Save nickwynja/1664675 to your computer and use it in GitHub Desktop.
Markdown to HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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