@joordiii, You might want to take a look at the docs about Configuration. Especially the Images setting ‘cls’ or ‘Cumulative Layout Shift’.
In Markdown, you can use something like 
. Height and width will now be added automatically.
See https://web.dev/optimize-cls/ for more background info on cls.