Questions tagged [redcloth]

RedCloth is a module for using the Textile markup language in Ruby.

RedCloth is a popular Ruby library for converting Textile-formatted text into HTML.

62 questions
1
vote
4 answers

Error installing RedCloth

I'm getting this erron when trying to install RedCloth on openSuse: sudo gem install RedCloth Building native extensions. This could take a while... ERROR: Error installing RedCloth: ERROR: Failed to build gem native…
Greg
  • 5,862
  • 1
  • 25
  • 52
1
vote
3 answers

require 'rubygems' and requre 'RedCloth' is not working. How can I fix it?

I'm learning Ruby from "Beginning Ruby from Novice to Professional" by Peter Cooper. I am on Chapter 7. I have ruby 2.0 installed. I am facing this error: C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load…
1
vote
0 answers

Redcloth parsing urls with underscore results in emphasis

We use redcloth to parse text given by users in our application. However, there was a bug in the parser as shown below >> RedCloth.new('http://www.example.com/?_test_param_=test', [:no_span_caps]).to_html =>…
jvnill
  • 29,479
  • 4
  • 83
  • 86
1
vote
0 answers

textilize method not found on rails

I have this line on my program
<%= textilize @box.description %>
but it gives that error undefined method 'textilize' for #<#:0x00000003fc1428>,I have installed RedCloth 4.2.9 but it is still not working.
user3447780
  • 97
  • 1
  • 6
1
vote
2 answers

RedCloth loaderror on ruby 2.0.0 [i386-mingw32]

When I upgraded my rails 3.2.13 application (on Win XP) from ruby 1.9.3 to ruby 2.0.0, it crashed due to gem RedCloth (4.2.9 x86-mingw32). Message: couldn't load 2.0/redcloth_scan (LoadError). In other words: /lib/2.0/redcloth_scan.so does not…
dd_hk
  • 110
  • 7
1
vote
0 answers

RedCloth: avoid html-escaping on custom extension when :filter_html enabled

Tried searching with Google but found nothing similar... I have an app that uses textile to format messages. I am trying to tighten up the security and only allow HTML generated via textile markup. So I enabled :filter_html option as per RedCloth…
Swartz
  • 1,051
  • 2
  • 11
  • 23
1
vote
1 answer

RedCloth Installation failed

i was trying to install octopuses, but i got stuck installing RedCloth (http://redcloth.org). I think the problem is the same of this one, but that's the solution for windows and i run OSX (10.8). --redacted--
vale
  • 1,376
  • 11
  • 25
1
vote
0 answers

RedCloth dynamic tag

I'm trying to make a custom tag for RedCloth. However, I need to fetch some data from the database and base the tag on that. I.e. when writing "image. 1" it should fetch a user uploaded picture from the database with id #1. But I can't figure out…
1
vote
1 answer

Truncate - unexpected result with sanitize(RedCloth.new(object))

I have some text that I would like to output using RedCloth. I am trying to figure out how this works and I can't get the result that I would like. Used Code: truncate(sanitize(RedCloth.new("*some* interesting text")).to_html, length:…
Marius Pop
  • 1,431
  • 2
  • 19
  • 32
1
vote
2 answers

Convert MediaWiki Markup to Textile Markup

I have a problem :0 At my place of work we have two wiki systems and I have been charged with finding a way of migrating from a MediaWiki to a redmine wiki -- only problem is they use different markup languages (WikiText vs Textile) and a possible…
h4unt3r
  • 846
  • 10
  • 14
0
votes
1 answer

Ruby on Rails RedCloth issue when using Docker on Apple M1 hardware

When using the RedCloth gem under Ruby on Rails in a Docker container on an Apple M1 system, the string get truncated just before the first non-ascii character. The problem does not happen on an Apple Intel system or if Rails is run outside of…
0
votes
2 answers

Installing RedCloth gem from github with bundler

I'm running into a problem with the latest versioned release of the RedCloth gem, 4.2.7. Specifically, it's the gcc 4.6 compile issue that was resolved in this commit, but has not yet been included in a release despite how long ago it was…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
0
votes
1 answer

How do I render RedCloth html in a view in Rails3?

In rails 2, I use <%=h %> to display HTML-generated by RedCloth, but how do I do that in Rails 3? <%= raw RedCloth.new(@review).to_html %>
Satchel
  • 16,414
  • 23
  • 106
  • 192
0
votes
1 answer

How can I insert a ruby form into Redcloth-modified HTML in Rails?

I have a page where I use RedCloth to use markdown for the text and images. I want to be able to place a form somewhere in the text by putting the string [Form] and my application does a substitution to replace [Form] with the ruby code to execute…
Satchel
  • 16,414
  • 23
  • 106
  • 192
0
votes
1 answer

Error installing RedCloth on Rails 3.0.3 and RVM on Ubuntu 10.10

I'm trying to add Redcloth to my Gem file, and when I run 'bundle install', I get the following: Installing RedCloth (4.2.6) with native extensions /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in `rescue…
Tim
  • 88
  • 5