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
0
votes
2 answers

Get text word count from RedCloth

I've just started using RedCloth as part of a simple wiki feature in my ruby on rails app. I'd like to be able to display a word count next to wiki pages in the index. Given the textile pulled from the database as input, how should I go about…
Nat
  • 2,689
  • 2
  • 29
  • 35
0
votes
1 answer

RedCloth and Rails

I want use RedCloth gem, i install it, in my gemfile i put -> gem 'RedCloth' in my show.html.erb i put -> <%= RedCloth.new(@post.text).to_html %> and i saw simple html syntax, than i use <%= raw RedCloth.new(@post.text).to_html %> and it work…
Dmytro Vasin
  • 823
  • 2
  • 11
  • 22
1 2 3 4
5