stephenharris / WP-MarkDown

WP-MarkDown plug-in. Allows Markdown to be enabled in posts, comments and bbPress forums.
http://wordpress.org/extend/plugins/wp-markdown/
112 stars 19 forks source link

Display image description as figure caption #42

Open orschiro opened 10 years ago

orschiro commented 10 years ago

Hi Stephen,

Thanks a lot for devleoping and maintaining WP-Markdown. I always miss the simplcity of markdown when I have to use WP without your plugin!

One question. I noticed that currently images do not have any caption set.

Is it possible to use the image description as a figure caption?

Example from Wordpress-markdown code:

![This description should become a caption][1]

Can this be rendered as a figure caption in the published post?

If not, what would be your advice if I want to use figure captions?

Thanks ahead!

stephenharris commented 10 years ago

Hi @orschiro

As far as I'm aware there's no markdown support for captions. In this instance you'd need to write out the appropriate HTML. (Or use the caption shortcode).

orschiro commented 10 years ago

@stephenharris

You are right, there is not native support of markdown for captions. In that case it is not possible that WP-Markdown can automatically transform the image description into a

tag in the post?

In this instance you'd need to write out the appropriate HTML. (Or use the caption shortcode).

Can you give me an example how to do that in a post?

Thank you!