Cant do image processing as described

When i try to add

{{ $image := .Resources.GetMatch “sunset.jpg” }}

to my markdown file, the command gets rendered and is visible on the webpage.

Help is greatly appreciated. Thanks

You can’t add go template language in markdown.

You have to use it in a layout template or in a shortcode.

Image processing is done on the templates, not markdown files.