Testing it with this cool speaker from https://gear.bethesda.net/products/t-51-power-armor-speaker:
The markup:
Uploaded file via composer: [t51-helmet.usdz|attachment](upload://jFx1C6poHlvJtfHUSK4TLCQ1I8P.usdz)

Linked image with HTML:
<a href="https://meta.discourse.org/uploads/short-url/jFx1C6poHlvJtfHUSK4TLCQ1I8P.usdz">
<img src="https://global.discourse-cdn.com/meta/original/3X/b/c/bc1ff8b759367e3ebc904966a3820743cb3f1c11.jpeg" alt="image" class="resizable" width="333" height="500">
</a>
becomes
Uploaded file via composer: t51-helmet.usdz
Linked image with HTML:
Works on my iPad:
So it already kinda works if you enable the usdz extension on your site settings!
To make the user experience our TODOs here would be:
Serve .usdz with the proper MIME-type which is model/vnd.usdz+zip.
Allow list the attribute rel="ar" in a elements.
Auto add rel="ar" for .usdz uploads.
2 and 3 can be hacked using a theme-component, 1 needs core support.
That being said:
Looks like it would be easier to package this web component https://modelviewer.dev/ as a Discouse theme-component and it would be a cross-platform thing for everyone.
