Forum: Redcloth strange tests

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.