Questions tagged [bluecloth]

Markdown library in a Ruby gem

bluecloth is a Markdown library written for Ruby.

See also

Resources

25 questions
18
votes
3 answers

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…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
7
votes
4 answers

Bluecloth v2.0.10 with windows 7 not working

WIth Ruby 187, I had downloaded devkit from http://rubyinstaller.org/downloads and followed the instruction per https://github.com/oneclick/rubyinstaller/wiki/Development-Kit. I had also ensured that devkit is installed properly by following smoke…
Jaymin
  • 207
  • 5
  • 9
5
votes
2 answers

Installing Publify with bundle install, error on bluecloth gem

I'm trying to install Publify web blog CMS 6.0.9 for Ruby on Rails 3.1 on Windows. Every time I try to bundle install Publify, I get the same error message when installing the bluecloth gem: C:\Users\Lunasea\Downloads\typo-6.0.9>gem install…
m_vdbeek
  • 3,704
  • 7
  • 46
  • 77
5
votes
4 answers

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.
user425766
  • 389
  • 1
  • 4
  • 7
5
votes
1 answer

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

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…
Vineeth Pradhan
  • 8,201
  • 7
  • 33
  • 34
3
votes
2 answers

Unable to install or update Ruby bluecloth gem on Windows Ruby 1.9.2

I'm getting an error message while trying to update my version of bluecloth gem on Windows. Is there a different version that I need to install for Windows or an alternative to bluecloth that I can use? Unfortunately my development environment is…
lagrz
  • 79
  • 5
3
votes
4 answers

Redcarpet/Bluecloth not allowing headers?

Is there a way to use either Redcarpet or Bluecloth such that when it interpolates the markdown it won't make any headers? For example: #header 1 yields: header 1 header 1 (preferred) And: ##header 2 yields: header 2 header 2 (preferred)
Cyrus
  • 3,687
  • 5
  • 35
  • 67
3
votes
1 answer

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 …
JP Silvashy
  • 46,977
  • 48
  • 149
  • 227
3
votes
2 answers

Tell Markdown to ignore everything in block?

Markdown already ignores everything within a
element, and various other block-level elements. However, I need to tell Markdown to ignore everything within blocks as well. Is there a way to tell Markdown to do this? As an FYI, I am…
Lester Peabody
  • 1,868
  • 3
  • 20
  • 42
2
votes
1 answer

On Ruby on Rails, how to do Syntax highlighting using Markdown (RDiscount / BlueCloth) with CodeRay?

I am aware there is a Railscast and ASCIIcast for using Textile (RedCloth) with CodeRay, and the way it is done is by a helper: module ApplicationHelper def coderay(text) text.gsub(/\(.+?)\<\/code\>/m) do …
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
2
votes
2 answers

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' =>…
Matt Briggs
  • 41,224
  • 16
  • 95
  • 126
1
vote
2 answers

Installing bluecloth - configuration options?

I tried installing the bluecloth gem by typing gem install bluecloth But when I do that I get the following error message: checking for random()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary…
Cyrus
  • 3,687
  • 5
  • 35
  • 67
1
vote
0 answers

is bluecloth 2 a drop-in replacement for BlueCloth 1?

Is bluecloth 2 a drop-in replacement for BlueCloth 1? We have a rails 2.3 app at the moment which uses the BlueCloth 1 gem; if we change our config to use the newer one, will we need to do anything else, or is that sufficient?
Simon
  • 25,468
  • 44
  • 152
  • 266
1
vote
3 answers

gem problems with snow leopard and nokogiri bluecloth and feedzirra

I just upgraded to snow leopard, ran the migration assistant and have spent hours and hours trying to get these gems to work with no luck. When I try to start my server I get the errors below. All the gems that are missing are actually in vendor…
Joelio
  • 4,621
  • 6
  • 44
  • 80
1
vote
1 answer

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…
berkes
  • 26,996
  • 27
  • 115
  • 206
1
2