Enhancement Image size placeholders in media snippet #215

Closed
opened 2026-10-05 02:34:07 +02:00 by adam · 2 comments
Owner

Discussed in https://github.com/estruyf/vscode-front-matter/discussions/267

Originally posted by jmatthewpryor February 24, 2022
Hi

It seems like it would be useful to have access to the media image width and height as snipper placeholders as described here

Is that possible?

Thanks

### Discussed in https://github.com/estruyf/vscode-front-matter/discussions/267 <div type='discussions-op-text'> <sup>Originally posted by **jmatthewpryor** February 24, 2022</sup> Hi It seems like it would be useful to have access to the media image width and height as snipper placeholders as described [here](https://frontmatter.codes/docs/markdown#insert-your-own-media-snippet) Is that possible? Thanks</div> <!-- github-sync-id:1150234704 -->
adam closed this issue 2026-10-05 02:34:07 +02:00
Author
Owner

Two new snippet placeholders got introduced:

  • {mediaWidth}
  • {mediaHeight}
Two new snippet placeholders got introduced: - `{mediaWidth}` - `{mediaHeight}` <!-- github-comment-id:1050693332 -->
Author
Owner

Amazing !! - thanks - works a treat....

Amazing !! - thanks - works a treat.... <!-- github-comment-id:1051571525 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#215