Fail parsing on HTML syntax error#6
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces HTML validation to the parser by integrating the angular-html-parser library. The parse function now validates the generated content and throws a SyntaxError with precise location data if any HTML structural issues are found. Additionally, unit tests have been added to cover invalid nesting and malformed tags. A review comment suggests ensuring that the column index for the end of the error location is 1-indexed to maintain consistency with the start column and meet Prettier's expectations.
|
Ping @sgruendel |
ah yes hadn't set up notifications properly I guess, looking at it now |
Fixes part of #5
Only make parsing fail for now