Warren Seltzer wrote:> Instead of emm-dashes I get struck-out text surrounded with single
> hyphens. RedCloth
> 3.0.4:
>
>>> d = RedCloth.new "-- hyphens to the left of me, hyphens to the
right, all should be emm
> dashes --"
> => "-- hyphens to the left of me, hyphens to the right, all should
be
> emm dashes --"
>>> d.to_html
> => "<p><del>- hyphens to the left of me, hyphens to the
right, all
> should be emm dashes
> -</del></p>"
>
> There is a limit of one emm-dash per line -- ought to document this
> restriction.
I see no technical reason for this limitation, because the Textism
tool[1] is able to handle more than one emdash per line. For example,
when I entered the above string into the Textism tool, it produced:
<p>—hyphens to the left of me, hyphens to the right, all should
be emm dashes—</p>
In this manner, redcloth deviates from Textism''s implementation of
textile. Thus, please fix this problem, so I can stop using —
entities all over my textile files -- making them look like (gasp!)
HTML. :-(
Thanks for your consideration.
[1] http://textism.com/tools/textile/index.php
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---