Fnord

Half duplex nerd

Image links

Posted on 01 Aug 2014.

You think it'd be easy: Post an image that links somewhere. It's not.

Not sure where the bug is. Pardon me while I poke and experiment here:

Orient watch

Which works on markdown viewer. Talked to Statiked support and it is a library problem, they use MMMarkdown and it doesn't support nested syntax. Yet.

So I have to use inline HTML. Let's try that:

OK, we have a workaround!

This regex will find them:

\[\s*\!\[(.*?)\]\((.*?)\)\s*\]\((.*?)\)

and this will replace them, using the Komodo Edit v8 backslash syntax:

<a href="\3"><img src="\2" alt="\1"></a>

  • Markdown, Statiked

ABOUT

CATEGORIES