def comment(text = '')
      puts "Warning: Authors should avoid putting two or more adjacent hyphens inside comments." if text =~ /--/

      conditional = text =~ /\[if .*\]/

      rawtext "<!--"
      rawtext text
      rawtext ">" if conditional

      if block_given?
        rawtext "\n"
        yield
        rawtext "\n"
      end

      rawtext "<![endif]" if conditional
      rawtext "-->\n"
    end
def comment(text = '')
      puts "Warning: Authors should avoid putting two or more adjacent hyphens inside comments." if text =~ /--/

      conditional = text =~ /\[if .*\]/

      rawtext "<!--"
      rawtext text
      rawtext ">" if conditional

      if block_given?
        rawtext "\n"
        yield
        rawtext "\n"
      end

      rawtext "<![endif]" if conditional
      rawtext "-->\n"
    end
Emits an XML/HTML comment (&lt;!-- ... --&gt;) surrounding +text+ and/or
 the output of +block+. see
 http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4

 If +text+ is an Internet Explorer conditional comment condition such as
 "[if IE]", the output includes the opening condition and closing
 "[endif]". See http://www.quirksmode.org/css/condcom.html

 Since "Authors should avoid putting two or more adjacent hyphens inside
 comments," we emit a warning if you do that.