If you’re using Brad Choate’s Textile plugin for Movable Type, you’ve no doubt noticed it’s a pain to edit the pre-formatted <a> tag that’s generated by your MT bookmarklet. And if you haven’t, well, I have. Here’s how to patch your MT installation to make it all pretty and Textile-like.
- Edit the file
lib/MT/App/CMS.pm
in your MT installation - Go to line 631, which should read:
$param{text} = sprintf qq(<a title="%s" href="%s">%s</a>\n\n%s),
- Replace that line with:
$param{text} = sprintf qq("%s":%s\n\n%s),
- Go down 3 more lines, to the second instance of:
scalar $q->param('link_title'),
- Delete that line (line 634 in an unmodified CMS.pm)
Enjoy.
2 Comments
Just in case you didn’t realize — you don’t have to edit the hyperlink. MT-Textile allows you to use HTML markup too.
Yeah, I’m just a neat freak. 🙂 This is not a necessary tip, simply an obsessive one.