Wonderful 4.0.0 / Problems with em-dashes

It’s wonderful to see RedCloth 4.0.0. Thank you for the hard work.

I still see one bug that appears to have come back.

RedCloth.new(‘A sentence – with independent clause – fails.’).to_html

Does this:

A sentence - with independent clause - fails.

It should do this:

A sentence — with independent clause — fails.

According to ticket 26 – on the old Trac – this was fixed in the
SuperRedCloth branch. I’ve used that branch a while ago and it was
working correctly.

But it is broken again with RedCloth 4.0.0.

I’ve tried to fix it, but have had no luck.

Thanks again.

Dave

Sorry about the regression. I’m not sure what happened.

I’ve filed a ticket for you: http://jgarber.lighthouseapp.com/
projects/13054-redcloth/tickets/19-two-em-dashes-become-del#ticket-19-3

Thanks for reporting it!