Forum: Redcloth strange tests

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D893e113b51a8f200d2abb3ed9e54143?d=identicon&s=25 Gaspard Bucher (gazoduc)
on 2009-06-17 16:21
(Received via mailing list)
Hi Jason !

I am slowly building a parser and found the following specs:

"should not include trailing double-asterisk in a word if the next
char is a space":
  src: "yow** "
  htm: "yow"

"should not include trailing double-asterisk in a word if the next char
is EOF":
  src: "yow**"
  htm: "yow"

"should include trailing asterisk in a word if the next char is a
double-asterisk":
  src: "yow***"
  htm: "yow*"

"should include trailing double-asterisk in a word if the next char is
a double-asterisk":
  src: "yow****"
  htm: "yow**"

I just don't understand why we should eat the trailing "**". This
sounds like over-engineering...

Please tell me the reason for this (conditional) stripping.

Gaspard
This topic is locked and can not be replied to.