I'm a huge fan of Markdown (using it in nearly all of my PHP projects) but not a fan of its limited output. Much of the rendering is a bit too simple, and doesn't really allow me much control or freedom regardings its layout. For instance, I can insert an image:
![Alt Text](path/to/image.jpg) This is my image!
But that will simply be converted into:
<p>
<img src="path/to/image.jpg" alt="Alt Text" /> This is my image!
</p>
Suppose I wanted to float my image to the right? I cannot currently add any classes to the syntax, but wouldn't that be a nice feature to have? I'd like to be able to output:
<p>
<img src="path/to/image.jpg" alt="Alt Text" class="alignright caption">
This is my image!
</p>
Support for one or more CSS classes would be phenomenal. My question is regarding the best way of implementing this support into the PHP-version of Markdown.
Ideas?