Hi, there. Just thought I would mention that this markdown is not working:
![](somephoto.jpg?id=some-photo)
It produces an img tag with no id attribute at all, but also without ‘?id=some-photo’ appended to the img src as a query string (so it is being processed to some extent). Classes work fine. I am using v1.1.1
On a side note, the text area here in the forum posting box has the cursor set to ‘pointer’ in the css (like a link pointer), which makes it hard to edit. File is moot.css under rule ‘.m-input-wrap textarea’.
Never tried to output an id but I remember having to enable markdown extra for classes to be outputted. So, maybe make sure that markdown extra is enabled in your site configuration
I have tried it without the hyphen and it makes no difference. Interestingly, when I enable markdown extra and try it with their syntax:
![](somephoto.jpg){#somephotoid}
or
![](somephoto.jpg){.somephotoclass}
I get the same behavior: classes work, id’s don’t.
I was looking at some of the source code. In ParsedownGravTrait.php, in the function ‘inlineImage’, if I dump the variable ‘$excerpt’ near the beginning, after the first if-else block (say line 205), I get the following: