k0kubun / hamlit

High Performance Haml Implementation
https://rubygems.org/gems/hamlit
Other
981 stars 59 forks source link

Incorrect Code for Conditional Comments #153

Closed esb closed 4 years ago

esb commented 4 years ago

According to the HAML Reference

/![if !IE]
  You are not using Internet Explorer, or are using version 10+.

is compiled to:

<!--[if !IE]><!-->
  You are not using Internet Explorer, or are using version 10+.
<!--<![endif]-->

However, hamlit generates this instead:

<!--[if !IE]>
You are not using Internet Explorer, or are using version 10+.
<![endif]-->
k0kubun commented 4 years ago

Thanks to report this. I fixed the issue in Hamlit v2.11.0.