#22 ✓resolved
TwP

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>&lt;h2&gt;Title&lt;/h2&gt;</code></p>"

Comments and changes to this ticket

  • TwP

    TwP July 24th, 2008 @ 06:57 PM

    str = "@

    Title

    @"

    doc = RedCloth.new(str)

    doc.to_html #=> "

    Title

    \n

    "

    I would expect the generated output to be escaped HTML inside a tag.

    "

    <h2>Title</h2>

    "

  • TwP

    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

    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

    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]

    http://github.com/jgarber/redclo...

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket

Attachments

Tags

Pages