#278 new
Kieran P

Weird RedCloth output caused by ".."

Reported by Kieran P | September 15th, 2015 @ 05:50 PM

Consider the following text:

A.. A

B

C

You would imagine it would return:

<p>A.. A</p>
<p>B</p>
<p>C</p>

Instead, it returns this:

<p>A.. A</p>
<p>A.. AB</p>
<p>A.. ABC</p>

Using the latest version of RedCloth and even does this on the RedCloth website: http://redcloth.org

When you remove the ".." on the first line, everything works as expected.

When you remove the new lines above and below line "B", it works as expected.

When the first line ends with ".." (rather than being in the middle of it), it works as expected.

When the ".." is not followed by a space ("A..A"), it works as expected.

However, in the case described above, when the conditions are right, this is clearly not what is expected and is causing havoc.

If the fix isn't a quite one, we'll have to consider moving to some of the newer more supported formats (like markdown)

No comments found

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