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