BlueCloth bug?

Hello Group,

I'm toying around with BlueCloth, and wonder why I get the following behaviour:

irb(main):008:0> (BlueCloth.new "test\n\n Code").to_html
=> "<p>test</p>\n\n<p>Code</p>"

I expected
=> "<p>test</p>\n\n<pre>Code</pre>"
because the MarkDown Documentation states that 4 Spaces or one Tab make a block a codeblock.

Any ideas on what I'm doing wrong?

Brian

···

--
Brian Schröder
http://ruby.brian-schroeder.de/

The code you provide generated
"<p>test</p>\n\n<pre><code>Code\n</code></pre>" with Ruby 1.8 and
BlueCloth 1.0.0 installed through RubyGems. As this appears to be the
correct output, check that you are using the latest version of
BlueCloth.

···

On Mon, 27 Sep 2004 19:49:08 +0900, Brian Schröder <ruby@brian-schroeder.de> wrote:

Hello Group,

I'm toying around with BlueCloth, and wonder why I get the following
behaviour:

irb(main):008:0> (BlueCloth.new "test\n\n Code").to_html
=> "<p>test</p>\n\n<p>Code</p>"

I expected
=> "<p>test</p>\n\n<pre>Code</pre>"
because the MarkDown Documentation states that 4 Spaces or one Tab make
a block a codeblock.

Any ideas on what I'm doing wrong?

Brian
--
Brian Schröder
http://ruby.brian-schroeder.de/

Thanks for testing it. I used rpa to install bluecloth and assumed it would be the current version. But it seems to be an old 0.0.3b version.

regards,

Brian

Patrick Spence wrote:

···

The code you provide generated
"<p>test</p>\n\n<pre><code>Code\n</code></pre>" with Ruby 1.8 and
BlueCloth 1.0.0 installed through RubyGems. As this appears to be the
correct output, check that you are using the latest version of
BlueCloth.

On Mon, 27 Sep 2004 19:49:08 +0900, Brian Schröder > <ruby@brian-schroeder.de> wrote:

Hello Group,

I'm toying around with BlueCloth, and wonder why I get the following
behaviour:

irb(main):008:0> (BlueCloth.new "test\n\n Code").to_html
=> "<p>test</p>\n\n<p>Code</p>"

I expected
=> "<p>test</p>\n\n<pre>Code</pre>"
because the MarkDown Documentation states that 4 Spaces or one Tab make
a block a codeblock.

Any ideas on what I'm doing wrong?

Brian
--
Brian Schröder
http://ruby.brian-schroeder.de/

--
Brian Schröder
http://ruby.brian-schroeder.de/

Bluecloth 1.0.0 is now in RPA (I had missed that release); just
   rpa update
   rpa install bluecloth
to get it.

···

On Mon, Sep 27, 2004 at 09:31:26PM +0900, Brian Schröder wrote:

Thanks for testing it. I used rpa to install bluecloth and assumed it
would be the current version. But it seems to be an old 0.0.3b version.

--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com