semoro / MarkupToSCSS

Small IntelliJ IDEA plugin, which can help you to create .scss files
Apache License 2.0
20 stars 2 forks source link

The element type "img" must be terminated by the matching end-tag (in phpstorm) #13

Open 0936566232 opened 4 years ago

0936566232 commented 4 years ago

Unfortunately the markup of the "img" tag does not work. You must set .

As far as I know, the presence of a closing tag for an image is not necessary! And Emmet does not close the "img" tag. Can you check this bug and fix it?

Shurikus-crypto commented 3 years ago

One solution is to change the Live Templates for single html tags --> Settings / Editor / Live Templates , expand list Zen HTML and find single HTML tags . Edit Template text (for WebStorm, probably the same way for PhpStorm). For Example: replace <img src="$VAR0$" alt="$VAR1$"> with <img src="$VAR0$" alt="$VAR1$" /> . But you'll have to work hard )))