Pandoc has an link attributes extension that permits the following (in the second link) but is highlighted as an error. (I think that's what the orange-ish color is.)
An inline ![image](foo.jpg){#id .class width=30 height=20px}
and a reference ![image][ref] with attributes.
[ref]: foo.jpg "optional title" {#id .class key=val key2="val 2"}
Pandoc has an link attributes extension that permits the following (in the second link) but is highlighted as an error. (I think that's what the orange-ish color is.)