Markdown in Image Descriptions not rendering #814

mjmurphy opened this Issue Dec 6, 2014 · 2 comments


None yet

2 participants

mjmurphy commented Dec 6, 2014

I want to allow extra markup in the image description field (for basic formatting and links etc.). I have added Markdown to the "Text formatters (for file descriptions)" on the Images field, but it does not seem to be rendering the markdown in my templates.

Processwire version : 2.5.8 dev
Modifications : I have ProcessCropImage and the Language support for Fields and Page Names installed

When i try to render the image description in my template :

echo $image->description;

It shows the text and seems to recognise and strip out the markdown tags e.g.

**This** becomes This

but does not actually render any html.

@ryancramerdesign ryancramerdesign added a commit that referenced this issue Dec 7, 2014
@ryancramerdesign Fix issue #814 where markdown in file/image descriptions was getting …
…html stripped out incorrectly.

Thanks, I was able to duplicate and have pushed a fix for this to dev.

mjmurphy commented Dec 7, 2014

Great - just tested locally and it's working. Thanks for the quick fix!

@mjmurphy mjmurphy closed this Dec 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment