zebzhao/indent.js

indentHTML not detecting self-closing img tags

Closed this issue · 1 comments

The third master-rule should include self-closing img tags. Otherwise it skips an indentation on the tag.
{
langs: "html",
name: "link|br|input|meta|img",
startToken: [/<(link|br|input|meta|img)/i],
endToken: [/>/],
advance: true
},

Thanks. I added hr and img to that rule. #4