add support for simple comments
authoradam <adam@megacz.com>
Thu, 10 Apr 2008 16:35:50 +0000 (09:35 -0700)
committeradam <adam@megacz.com>
Thu, 10 Apr 2008 16:35:50 +0000 (09:35 -0700)
darcs-hash:20080410163550-5007d-7605701b2b924796387e0f0c67a484b326764c94.gz

src/Html.lhs

index a6cfeea..632dcfe 100644 (file)
@@ -195,6 +195,7 @@ instance ToHtml Text where
  toHtml (Quotes x)                = "&#8220;"++(toHtml x)++"&#8221;"
  toHtml (Verbatim x)              = pre x
  toHtml (Link t ref)              = link (show ref) (toHtml t)
+ toHtml (Command "comment" y)     = ""
  toHtml (Command "url" y)         = "<tt>"++(link (toHtml y) (toHtml y))++"</tt>"
  toHtml (Command "WiX" y)         = "W<span style='vertical-align:-20%'>I</span>X"
  toHtml (Command "TeX" y)         = "T<span style='vertical-align:-20%'>E</span>X"