bluecloth

BlueCloth error on windows

Having a bit of a nightmare getting bluecloth to work on windows. I grabbed the gem from the site (since gem install bluecloth doesnt work). However, I can't seem to get the library to load irb(main):001:0> require 'rubygems' => false irb(main):002:0> require 'bluecloth' LoadError: no such file to load -- bluecloth_ext from C:/R...

displaying markdown in my textarea

I'm using BlueCloth to create html from markdown from the content my users enter into a textarea like this: def create @post = Post.new(params[:post]) do |post| body = BlueCloth.new(post.body) post.body = body.to_html end ... end This works great! I get the html stored in the database fine, But how do I show markdown in...

Markdown to plain text in Ruby?

I'm currently using BlueCloth to process Markdown in Ruby and show it as HTML, but in one location I need it as plain text (without some of the Markdown). Is there a way to achieve that? Is there a markdown-to-plain-text method? Is there an html-to-plain-text method that I could feel the result of BlueCloth? ...

Problems installing rdoc, irb, bluecloth, chronic on fedora 12

Hello, What do these errors mean? [root@localhost config]# gem install bluecloth Building native extensions. This could take a while... ERROR: Error installing bluecloth: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb can't find header files for ruby. Gem files will remain installed in /usr/lib64/ruby/g...

Get underlined text with markdown

Greetings, I am using BlueCloth as a Markdown library for Ruby and I can't find any syntax for getting a text underlined. Any ideas? Peter ...

What's wrong with my markdown syntax? Broken in stackoverflow and bluecloth...

I just wrote some markdown and it doesn't seem to render correctly. Is it legal syntax to have an ordered list, followed by newlines, then followed by an unordered list? Or is this a bug in bluecloth? For example: 1. One 2. Two 3. Three * Apple * Banana * Carrot Bluecloth creates a single <ul> and nests apple, banana and carrot as ...

Ruby on Rails form f.text_area contains additional spaces

I have a quite average form in Rails, trough blog_kit <% form_for(@blog_post, :html => { :multipart => true }) do |f| %>\ ... other code <%= f.text_area :body %> <%= debug(@blog_post) %> When editing a blog-post, the body suddenly contains additional spaces (marked as _ to visualise): ...sit amet eleifend diam imperdiet pharetr...

BlueCloth isn't working with Rails 3

Is BlueCloth compatible with Rails 3? I can't make it work, maybe someone uses it? There is supposed to be a helper called 'markdown' available in the views after requiring 'bluecloth', but this doesn't seem to be available. ...

Haml Markdown Filter Breaking on Example Ruby Code in Rails

I'm using Haml in rails and have been writting with the :markdown filter (bluecloth gem), but a piece of example code is in ruby and the page tries to execute the #{values}, how can I stop this? Here is the breaking bit of code: :markdown like_frags = [fields].flatten.map { |f| "LOWER(#{f}) LIKE :word#{count}" } or_frags << "(#{l...