obsidian-markdown-formatting-assistant-plugin
obsidian-markdown-formatting-assistant-plugin copied to clipboard
Image template adds </img> which is ignored by obsidian
Describe the bug
When using the template to insert an <img> tag it adds a </img> which is ignored by obsidian and is visible in the document
To Reproduce Steps to reproduce the behavior:
- Go to a note
- Click on
<img>button under HTML in the side panel - Fill in the information in the template for the image
- When you click away from editing the img tag you will see the image but you also see the text
</img>after the image
Expected behavior I expect to see just the image
Screenshots
Hitting the <img> button gives you a template like this:
<img src="" alt="" width="" height=""></img>
If I fill in fields of the template e.g.:
<img src="https://thumbs.dreamstime.com/b/beautiful-rain-forest-ang-ka-nature-trail-doi-inthanon-national-park-thailand-36703721.jpg" alt="" width="" height="100"></img>
I see this in the presentation version:

Additional context
Since obsidian renders based just on the <img> tag I suggest you change your template to be:
<img src="" alt="" width="" height=""/>