Users are discussing the inability to add custom classes to image tags in posts, which is being stripped out by the Markdown editor. mpteng reports that adding a class manually in the post doesn’t work, and screenshots confirm the class is removed upon saving. schungx suggests the new Markdown editor restricts certain attributes like class, which are being stripped. jomaxro references a recent code change (https://github.com/discourse/discourse/commit/9cb088e3f6762df3369e647b1de122edd536fa30) that likely introduced this behavior, noting that classes were previously allowed. The issue is seen as a limitation in the current editor’s handling of HTML attributes.
We are having the same issue. Can you guys confirm there is a bug? We were able to add custom classes to images before but now when we create a new topic it is removed.