
HTML block ending tags terminate block
Reported by TwP | July 24th, 2008 @ 07:07 PM | in 4.0.2
str = "@<h2>Title</h2>@"
doc = RedCloth.new(str)
doc.to_html #=> "<p>@<h2>Title</p>\n<p></h2>@</p>"
I would expect the generated output to be escaped HTML inside a tag.
"<p><code><h2>Title</h2></code></p>"
Comments and changes to this ticket
-
TwP July 24th, 2008 @ 06:57 PM
str = "@
Title
@"doc = RedCloth.new(str)
doc.to_html #=> "
\n"Title
I would expect the generated output to be escaped HTML inside a
tag.
"
"<h2>Title</h2>
-
TwP July 24th, 2008 @ 07:00 PM
I can't get this ticket formatted correctly! How do you submit an example of the syntax error when LightHouse is consuming the Textile syntax ??
Anyway -- see the attached file for an example of the error and the expected output.
Blessings,
TwP
-
Jason Garber July 25th, 2008 @ 10:24 AM
- Milestone set to 4.0.2
- State changed from new to open
- Title changed from @code tags@ not working for HTML syntax to HTML block ending tags terminate block
- Tag set to parser
The problem is larger than just code tags. Any html block end tag like or
terminates the block and starts a new paragraph. I've got a fix brewing. -
Jason Garber July 25th, 2008 @ 10:29 AM
- State changed from open to resolved
(from [b3edfd77569de14361f8c67000a680c81ccd3f77]) Fixed HTML block ending tags terminating blocks prematurely. [#22 state:resolved]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RedCloth is a Ruby library for converting Textile into HTML