Is it possible to ignore html tags in prettier

I really like prettier to format my html files but one thing I don't like is prettier formatting specific tags. For example, I have the following code line:
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
where I really don't want prettier to format it to:
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon/favicon-16x16.png" />
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon/favicon-16x16.png" />
I know I could do <!-- prettier-ignore --> but then again, I have quite a lot of meta and input tags in my header which I don't want prettier to format so I would copy past the comment many times, which kinda sound stupid. So I was asking myself, is it possible to define a setting in the prettier configuration file to ignore specific html tags like meta or input?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server