Set "title" attribute for images from markdown #985
At the moment, we're using showdown for markdown to html conversion. Showdown uses regular expressions, which gets us into all kinds of knots. I had to take out title support in order to have better URL support. At the moment, it's a trade-off. In the future we'll use a proper parser, and be able to handle advanced features such as this.
Regarding the title: I propose to use
This would make it easy to add captions to images that are easy to style with CSS.
@JohnONolan This isn't a Markdown extension. It's part of the original Markdown: http://daringfireball.net/projects/markdown/syntax#img
I'd like to implement this if above format is accepted.
Creating functionality like this is a lot less to do with what is and isn't a formal Markdown extension (you're right, it is) and a lot more to do with what is and isn't an extension of the Markdown-parsing-functionality which we have available to us (in which context, it absolutely is).
We plan to rip out the guts of our current Markdown parsing implementation (which is hack++) and write our own engine, as this is obviously a very integral/core part of Ghost.
Until then, as @ErisDS mentions, we heard you like REGEX so we put some REGEX in ur REGEX. ;) Which is not an ideal starting point for extending into more complex functionality.
Enhancements like this are absolutely welcome - we're just not quite ready for them yet.