#29 ✓invalid
Suraj Kurapati

Emphasis not applied in middle of unicode text

Reported by Suraj Kurapati | July 31st, 2008 @ 01:25 AM

  1. With RedCloth 3.0:

$ ruby -rubygems -e 'gem "RedCloth", "~> 3.0"; require "redcloth"; puts RedCloth.new(%{_చేస_వారికి}).to_html'


  1. With RedCloth 4.0:

$ ruby -rubygems -e 'gem "RedCloth", "~> 4.0"; require "redcloth"; puts RedCloth.new(%{_చేస_వారికి}).to_html''


Notice the lack of expansion in RedCloth 4.0. That is the bug.

Comments and changes to this ticket

  • Jason Garber

    Jason Garber August 8th, 2008 @ 03:17 PM

    • State changed from “new” to “invalid”

    Your problem is that there is no space around the underscores. In RedCloth 4.0, space is required around em phrases. You can't have anem phraselike this. In your example, add a space after your last underscore or surround your [em phrase] in brackets.

    In all three of these situations, RedCloth 4.0 behaves identically to Textile 2.0, which is the objective.

  • Jason Garber

    Jason Garber August 8th, 2008 @ 03:19 PM

    Well, clearly Lighthouse hasn't upgraded their RedCloth yet and I can't get around the 3.0.4 bugs enough to show you, but try a space or square brackets. Perhaps that formatting has an English bias, but we're just conforming to the Textile 2 spec.

  • Jason Garber

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