Ticket #1 (new task)

Opened 2 years ago

Last modified 5 months ago

Textile strong marks incorrectly span multiple lines

Reported by: whitley at acm dot org Owned by: somebody
Priority: trivial Milestone:
Component: component1 Version: 3.0.4
Keywords: Cc:

Description

RedCloth? version: 3.0.4, Ruby version: 1.8.4 (via darwinports)

The following example shows the asterisk on the first line to be interpreted as a multi-line strong mark, where this definitely wasn't the intent. I note that the behavior here differs from the Textism output, so I'm reporting it here:

Original text:

here's text *this is a test
* this is an item
* this is another item
* this is *yet* another item

RedCloth? output:

here&#8217;s text <strong>this is a test
        <ul>
        <li>this is an item</li>
                <li>this is another item</li>
                <li>this is *yet</strong> another item</li>
        </ul>

Textism Textile output:

	<p>here&#8217;s text *this is a test</p>
	<ul>
		<li>this is an item</li>
		<li>this is another item</li>
		<li>this is <strong>yet</strong> another item</li>
	</ul>

And another example which causes the strong tag to span the closing of a p tag:

p. this is a *strong item

p. crossing multiple paragraphs*

RedCloth? output:

<p>this is a <strong>strong item</p>


        <p>on multiple paragraphs</strong></p>

Change History

Changed 7 months ago by jgarber

  • version changed from 1.0 to 3.0.4

Changed 5 months ago by anonymous

  • milestone deleted

Milestone milestone1 deleted

Note: See TracTickets for help on using tickets.