beautifier/js-beautify
GitHub で見るBeautification problem with JS Single Line Comment <!--
Open
#1,835 opened on 2020年8月31日
good first issuelanguage: javascripttype: bug
説明
In Javascript <!-- is treated as a single-line comment just like //.
js-beautify works as expected when the line starts with <!--:
Input:
<!--alert(1)commented
Output:
<!--alert(1)commented
Otherwise it will break the syntax:
Input:
alert(1)<!--commented
Output:
alert(1) < !--commented