markdown in Moodle 4.0: style attribute missing in output

markdown in Moodle 4.0: style attribute missing in output

by Hermann Höhne -
Number of replies: 1
Hi all

I am using the plain text window and the markdown renderer. The university I am working for just recently upgraded to Moodle 4.0. Now the images in all of my text pages and assignments are displayed with their native (pixel) size. The style attribute is missing in the output, but an alt attribute is added.

In the text field (markdown mode):
<div style="text-align:center"><img style="max-width:80ch" src="…/draftfile.php/…/sample.jpg" /></div>

In the output:
<div style="text-align:center;"><img src="…/pluginfile.php/…/sample.jpg" alt="parcours.jpg" /></div>

What can I do to keep the style attribute? Is there another way to control the size of images?

Kind Regards
Hermann
Average of ratings: -