Forum

Thread tagged as: Problem, Blog

Imageclasses in Perch Blog not working

Hi guys,

I really like the Perch 2.5 update and have updated the Blog app accordingly as well along with the updated Markdown plugin. However, I found that my imageclasses are not working.

I have seen that the output of an image with classes in markdown has changed from

![title](/perch/resources/image.jpg).myclass

to

![title](/perch/resources/image.jpg).{myclass}

Maybe to allow multiple classes or alike? However, using both syntaxes the classes aren't parsed and only the image is outputted with the text ".{myclass}" written after it.

Edit: this is not only a Blog app issue, it's on all textareas that have the ability to include image classes. So likely a Markdown issue?

Any clue what could be the issue? Thanks, Jelmer

Jelmer Borst

Jelmer Borst 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show us your template tag?

This is one I use for the Blog content:

<perch:blog id="postDescHTML" type="textarea" label="Inhoud" encode="false" editor="markitup" markdown="true" imagewidth="640" imageheight="480" imageclasses="duo,trio" size="xxl" required="true" />

a normal textarea in Pages is defined - for example - as follows:

<perch:content id="text" type="textarea" label="Tekst" markdown="true" editor="markitup" imagewidth="640" imageheight="480" imageclasses="duo,trio" />
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, we'll test it out, thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The correct syntax to use is:

![title](/perch/resources/image.jpg){.myclass}

I cannot believe I have misread that so many times.

Thanks for the support, Drew :)