This is a particularly pertinent issue now, since Pandoc 3.1.7 just added support for Wikilink images. However, Pandoc doesn’t recognize image attributes combined with wikilinks, since Obsidian and other apps using wikilinks don’t support the image attribute syntax.
John MacFarlane (Pandoc creator) writes this in the issue I raised on Github: Link attributes on Wikilink images don't seem to work · Issue #9048 · jgm/pandoc · GitHub
I am reluctant to support a syntax that nobody supports. I don’t think you can provide such attributes on, e.g., GitHub wiki or Obsidian…
And my response:
I’m not entirely sure which syntax you are referring to. If it’s the wikilink image syntax, then didn’t you just add support for that?
If it’s the
{width=50%}image size syntax, then my question is, isn’t that the default Pandoc image sizing/attribute syntax?Or perhaps it’s the combination that you are reluctant about? If so, can you clarify why? If you support wikilink images, there should be some way to specify their size too, don’t you think?
And his response:
I meant the combination.
We could support it. But the point of thewikilinksextension was to allow interoperability with specific platforms that support this syntax, and they don’t support the use of image attributes with it…
Therefore, to ensure better compatibility with Pandoc, I second the need to either support Pandoc’s image attribute syntax, or to establish a more robust image resizing syntax with unit support that Pandoc could recognize. Preferably both.
Feel free to contribute on the Github issue above, and indicate your interest / support.