Ticket #49 (closed defect: wontfix)
HTML Comment causes Malformed tag
| Reported by: | pbarry | Owned by: | deveiant |
|---|---|---|---|
| Priority: | low | Milestone: | Bugfixes |
| Component: | MarkdownSyntax | Version: | 1.0.0 |
| Severity: | minor | Keywords: | malformed comment tag |
| Cc: |
Description
Using blue cloth, if you enter text like this:
Here is how you create an HTML comment:
<!
You get a Malformed tag error:
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'bluecloth'
=> true
irb(main):003:0> BlueCloth.new(' <!').to_html
RuntimeError: Malformed tag at character 8: "<!\n\n"
from /usr/local/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:1093:in `tokenize_html'
from /usr/local/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:402:in `escape_special_chars'
from /usr/local/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:200:in `to_html'
from (irb):3
Change History
Note: See
TracTickets for help on using
tickets.
