Easiest way to link image to src

Hi there,

in the good old days using Ghost 1.0 I was able to post an image and link it to original, plus add an snippet css using markdown:

[![cool Describtion](/content/images/2014/Jul/farcry3.jpg)](/content/images/2014/Jul/greatpic.jpg" class="mycss-lightbox)

Now using… * Version 2.9.1 and this markdown doens’t seem to work any longer. Now I’m sad.
How would the code look today?

Thanks for help :slight_smile:

@gregma the class="mycss-lightbox) syntax was exploiting a bug in the old markdown parser and should never have worked, it’s not valid markdown syntax at all. It stopped working when we upgraded to a much less buggy (and commonmark-compatible) markdown parser in Ghost 1.0.

If you need to do something with classes then you’ll need to use html, either inside your markdown or as a separate html card.

<a href="/content/images/2014/Jul/greatpic.jpg" class="mycss-lightbox">
  <img src="/content/images/2014/Jul/farcry3.jpg" alt="cool Describtion">
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.