Automatically linking Twitter mentions in Markdown blog posts
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

So I blog a lot, and I write all my blog posts with Markdown.

I got bored of having to link to people's Twitter accounts when I reference them, so why not build a quick ruby script to help out with that? Download this bad boy & run it like so:

$ ./markdowntwitter.rb will be modified, with all instances of "@Jack_Franklin" being replaced with the appropriate Markdown to link to that person's twitter account.

Big thanks to @46bit for all his help.

The regex is taken from Twitter's own library they open sourced, so credit to them for that one.