#31 ✓invalid
Suraj Kurapati

4.0 - paragraphs inside list items

Reported by Suraj Kurapati | August 2nd, 2008 @ 03:22 PM

Hello,

In the previous 3.0.4 version, I was able to create multiple

paragraphs inside a list item by indenting the secondary paragraphs

by two spaces like this:

  • First para.

Second para.

Third para.

In the new 4.0 version, only the first paragraph is put inside the

list item. I am forced to write HTML (yuck!) as a work-around:

  • First para.


Second para.


Third para.

Is there a directive like the backslash (\) in Ruby which tells the

parser to treat the next line of input as continuation of the

current line?

  • First para.

\

Second para.

\

Third para.

Thanks for your consideration.

Comments and changes to this ticket

  • Suraj Kurapati

    Suraj Kurapati August 2nd, 2008 @ 03:22 PM

    I originally posted this question on the RedCloth mailing list:

    http://rubyforge.org/pipermail/r...

  • Jason Garber

    Jason Garber August 8th, 2008 @ 04:50 PM

    • State changed from “new” to “invalid”

    I'm all for keeping new versions of RedCloth as backward-compatible as possible, but in this case we can't because the behavior conflicts with something else.

    In Textile 2, lines that start with spaces are not automatically surrounded with paragraph tags. So the correct interpretation of

    
    * first line
    
      second line
    

    is as RedCloth 4 and Textile 2 both do: an unordered list that is followed by some plain text.

    What RedCloth 3 output was:

    
    <ul>
    	<li>first para
    
    	<p>second para</p></li>
    	</ul>
    

    and that makes very little sense to me. If you're going to have multiple paragraphs within your list item, they all need to be in P tags, to my mind.

    Your suggestion of some line-continuation character is a nice one, but I'm hesitant to add something like that to solve corner cases. These things have a way of making things ugly later on.

    I think, when you want complex things like multiple paragraphs inside your list, bullet lists in your table, multiple definition descriptions in your DL, or deeply nested markup, you need to drop back to HTML.

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

Pages