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
76
votes
29 answers

rails error, couldn't parse YAML

After updating the gems I've got this: /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 182 column 9 (Psych::SyntaxError) from…
megas
  • 21,401
  • 12
  • 79
  • 130
20
votes
8 answers

Failed to build gem native extension when install RedCloth-4.2.9 install Linux

I want to install Octopress in my computer. I try to do it like Octopress document. When I run bundle install I got error message An error occured while installing RedCloth (4.2.9), and Bundler cannot continue. Make sure that `gem install RedCloth…
thlgood
  • 1,275
  • 3
  • 18
  • 36
11
votes
2 answers

How to install RedCloth on Windows?

When running gem install RedCloth (on Windows XP) I got: Fetching: RedCloth-4.2.8.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed RedCloth-4.2.8 1 gem…
Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746
11
votes
4 answers

Gem for Creating a full featured Blog in Rails Application

I need a gem for creating a Blog in my rails Application. We can write a whole bunch of our code, but for this small task an effective Gem is preferable. Please suggest a good Gem for creating a blog that supports following features : - Adding…
Ajay
  • 4,199
  • 4
  • 27
  • 47
6
votes
2 answers

How do I create a RedCloth live preview using jQuery?

I've had problems with many of the WYSIWYG gems/plugins for Rails, so I'm building one myself using the RedCloth gem. I want users to see a live preview of their HTML-formatted text as they're filling out a form, but don't know how to do that using…
kateray
  • 2,066
  • 4
  • 18
  • 23
5
votes
2 answers

RedCloth is breaking my Rails 3 blog

Something like Textile for the posts feels pretty necessary, but this is giving me all kinds of headaches. bundle package and bundle install are both working fine, and confirm that RedCloth is set to the latest stable release (4.2.2). Right now I'm…
4
votes
2 answers

HTML entities in Textile

HTML entities are not displayed correctly in Textile because the ampersand is converted into & by the system. Is there any way to input e.g. ⌘ and actually get ⌘? Wrapping the entity in ==⌘== does disable Textile processing for…
vicvicvic
  • 6,025
  • 4
  • 38
  • 55
4
votes
3 answers

What does this construction mean, in Ruby?

The method below exists in the Redcloth gem. My question is: what does the construction "to(RedCloth::Formatters::HTML)" mean? "to" isn't a method in the class, nor in the superclass (which is String class). def to_html( *rules ) …
csgui
  • 151
  • 5
4
votes
1 answer

cannot install RedCloth

as in the title, i have problems installing gem RedCloth. i downloaded RubyGems v1.8.24, and use ubuntu 12.04, here is my console log: kuba@kuba-P5Q-SE:~$ sudo gem install RedCloth [sudo] password for kuba: Building native extensions. This could…
Leo
  • 2,061
  • 4
  • 30
  • 58
3
votes
2 answers

Ruby, Textile: how to get plain text without tags and textile format

I have articles with bodies that are textile formatted text. I make full text search with sphinx and I want to highlight query in results. Sphinx give me something like this A *simple* _example_. I want to remove all…
petRUShka
  • 9,812
  • 12
  • 61
  • 95
3
votes
1 answer

Standalone RedCloth on Windows

Context I've recently taken part of a software development project for which I'd like technical documents to be written using a textual markup (suitable to be tracked in the code repository, alongside the code). Because the project is already using…
André Caron
  • 44,541
  • 12
  • 67
  • 125
3
votes
2 answers

Uninitialized Constant in Rails 3.0.1 using the RedCloth 4.2.2 gem

I'm having an issue with using RedCloth in my local application. I keep getting the following error: uninitialized constant ActionView::CompiledTemplates::RedCloth This happens because I have the following code: <%= RedCloth.new("Some…
alvincrespo
  • 9,224
  • 13
  • 46
  • 60
2
votes
0 answers

Couldn't load 1.9/redcloth_scan in windows

I searched here, didnot get any clue. here is the error message when i'm running rake db:schema:load RAILS_ENV=production Initializing database schema rake aborted! no such file to load -- 1.9/redcloth_scan Couldn't load 1.9/redcloth_scan The…
aaron
  • 1,951
  • 3
  • 27
  • 41
2
votes
1 answer

redcloth (MissingSourceFile) - new problem after Heroku changed to bundler 1.0.7

Our app had been working. Now I just pushed some new code into staging on Heroku for the 1st time after they moved to bundler 1.0.7. Now our app crashes and I got this error message…
Mei
  • 243
  • 4
  • 13
2
votes
2 answers

textile - how do I add a class to a definition list?

I'm using RedCloth to convert some textile text into html. One particular scenario seems particularly apt for using definition lists. With RedCloth, definition lists have this syntax (source): - coffee := Hot and black - tea := Also hot, but a…
kikito
  • 51,734
  • 32
  • 149
  • 189
1
2 3 4 5