feat: skip formatting scripts (#3) * feat: skip formatting scripts * chore: fix up after PR
1 file changed, 9 insertions(+), 0 deletions(-)
changed files
M format_test.go → format_test.go
@@ -53,6 +53,15 @@ input: `test 123`, expected: `test 123` + "\n", }, { + name: "script tags are not formatted", + input: `<script> + var x = 1; +</script>`, + expected: `<script> + var x = 1; +</script>` + "\n", + }, + { name: "phrasing content element children are kept on the same line, including punctuation", input: `<ul><li><a href="http://example.com">Test</a>.</li></ul>`, expected: `<ul>