Skip to content

Instantly share code, notes, and snippets.

View ELBeavers's full-sized avatar
🤔
I hope I'm learning something new right now!

Eric Beavers ELBeavers

🤔
I hope I'm learning something new right now!
View GitHub Profile
--Macworld Markdown to HTML script
--by Jason Snell <jsnell@macworld.com>
--Markdown and SmartyPants by John Gruber <http://daringfireball.net/projects>
--Version 10: Added Euro support and forced Unicode for output file
--Version 11: Output now opens as new document in source window.
--Version 12: Makes sure the output document is set to source language of HTML
--Version 13: Support for [[jump]] tag
--Version 14: Rewrite iLife ‘09 style tags to proper ’09 style.
--Version 15: Support pound symbol
-- By Rob Wells for the Morning Star
on open theStories
repeat with aStory in theStories
tell application "TextWrangler"
open aStory
tell text 1 of text window 1
educate quotes with replacing target