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…
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…
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…
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.
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…
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…
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)
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
…
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…
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
…
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'
=>…
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…
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?
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…
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…