Simple bookmarklet that adds markdown tags in Gmail
June 29 2010, 3:32 PM
About a month ago Posterous announced Markdown support. I started using for all my posts. But it soon became tiresome to always type "<markdown> </markdown>" spell.
Here's a solution - a bookmarklet that adds <markdown> tags in Gmail Compose Mail view. Create a new bookmark and paste the following as its URL:
javascript:(function(){document.getElementById('canvas_frame').contentDocument.getElementsByName('body')[0].value+='<markdown>\n</markdown>'})()
Then go to Gmail Compose view and click this bookmark. That's all!
(tested in Google Chrome)