#83 ✓resolved
Greg Moreno

Modifier delete requires prefixing text with a character

Reported by Greg Moreno | November 3rd, 2008 @ 08:59 PM | in 4.1.9

To replicate the bug:

in: -delete-
result: <p>-delete-</p>

However, if you prefixed it with a character, it will render correctly. For example:

in: a -delete-
result: <p>a <del>delete</del></p>

Also, if you include a character after, it will still not work.

in: -delete- a
result: <p>-delete- a</p>

Comments and changes to this ticket

  • Jason Garber

    Jason Garber January 22nd, 2009 @ 12:04 PM

    • State changed from “new” to “open”

    More details from Santiago Pastorino in #93:

    It seems like if there's no text before -text- the parser doesn't work

    >> RedCloth.new(" -hola- -sure-").to_html
    => "-hola- <del>sure</del>"
    >> RedCloth.new("-sure-").to_html
    => "<p>-sure-</p>"
    >> RedCloth.new("-del- -sure-").to_html
    => "<p>-del- <del>sure</del></p>"
    >> RedCloth.new(" -del- -sure-").to_html
    => "-del- <del>sure</del>"
    >> RedCloth.new("fv -del- -sure-").to_html
    => "<p>fv <del>del</del> <del>sure</del></p>"
  • Jason Garber

    Jason Garber January 22nd, 2009 @ 12:06 PM

    • Tag changed from attribute to attribute, del
    • Milestone set to 4.1.9
  • Jason Garber

    Jason Garber February 11th, 2009 @ 02:47 PM

    • State changed from “open” to “resolved”

    (from [241a3116e6672d101fa748f67ef95608c7bf9932]) Recognize deleted phrases when they start at the beginning of a line. [#83 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


Referenced by