BlueCloth bug?

B

Brian Schröder

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
 
P

Patrick Spence

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.
 
B

Brian Schröder

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
 
M

Mauricio Fernández

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.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top