[TxMt] modifying the URL helper in Markdown

Fred B fredb7 at gmail.com
Wed Jun 6 16:42:04 UTC 2007


On 6/6/07, jeff newman <bangersandmash at gmail.com> wrote:
> Hi everyone,
>
> Just wondering if there is a way to modify the hyperlink helper bundle
> when working in markdown (ok, I'm pretty sure there is a way, I just
> don't have the sweet skills to accomplish this on my own).
>
> Currently, when i paste a link using ctrl-shift-L I get:
>
> [text](http://linkaddress.yay)
>
> I would prefer to get
>
> [text][1]
>
> and then have the link entered at the bottom of the document.
>
> [1]: http://linkaddress.yay
>
> Any thoughts on how this could be pulled off?

I made macros to do this for normal links, Google and Wikipedia links,
as well as markdown-extra footnotes, incrementing the number if there
is other ref links. These are based on a command I made in Ruby, the
macro is only needed to insert the link at the cursor position and the
reference at the bottom of the doc.

I'm actually fighting to get my connection back, as an ISP "stole" it
a week ago (!), so I'm not online often for now.

Can I post the macros alone or should I post the commands and explain
how to make the macros?

--
FredB



More information about the textmate mailing list