angularjshtmltidyhtmltidy

How to tidy angular html?


I'm using tidy-html5 from brew, and i can't tidy up my angular templates because they use custom elements like those :

<due-diligence-point index="1" title="Lead Screening">

This throws this error on tidy-html5 :

line 26 column 9 - Error: <due-diligence-point> is not recognized!

There is an option i'm skipping or this will just not work with tidy ?

The only option i have is to populate manually "new-empty-tags" ?


Solution

  • I've asked this before prettier existed, which completelly solves this kind of problem.