Displaying 20 results from an estimated 2000 matches similar to: "Redcloth is .."
2005 May 24
3
textilize/markdown/sanitize for messageboards, oh my!
Hullo, fellow Railsers!
(warning: this isn''t a 100% Rails specific question, but I guess it
very much applies to what a lot of us are currently doing.)
For a project that involves messageboard functionality I''m looking for
a good way of sanitizing user input, so the silly fools, err, my
wonderful users don''t mess things up too much. I''ve played around with
2007 Jan 16
1
<BR> and <P> in RedCloth v. Textism
Hi,
I''m using RedCloth right now for some simple markup in a Rails project.
It''s simple and easy - thanks for a great tool!
I have a question about an apparent discrepancy between RedCloth and
Textile, relating to newline characters. I''ve played with the
"hard_breaks" feature and that seems to generate it''s own problems..
If I go onto the Textile
2006 Sep 18
2
RedCloth !image! bug with filter_html
Hi all!
I am trying tu set up RedCloth for user-submitted comments. And here is
my problem. The :filter_html option just breaks images :-(
For example, if I try in irb:
string= "Some textile !agif.gif! and textile again"
RedCloth.new(string, [:filter_html, :filter_styles]).to_html(:textile)
I get:
NoMethodError: You have a nil object when you didn''t expect it!
The error
2006 Mar 27
5
RedCloth and Rails
Has anyone had any experience with RedCloth for rails. It is a textile
system. I haven''t spot checked the code and was wondering if it caused
any lockups or other issues.
http://whytheluckystiff.net/ruby/redcloth/
--
Berlin Brown
(ramaza3 on freenode)
http://www.newspiritcompany.com
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/universe_home
2006 May 31
1
RedCloth vs BlueCloth -- RTL and Unicode?
Which has better support for Unicode, I18N and RTL languages, RedCloth or BlueCloth?
Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060531/a2f1f7da/attachment.html
2006 Jan 27
9
RedCloth Hard Breaks
Has anybody gotten :hard_breaks to work with RedCloth?
I''m doing:
self.body_html = RedCloth.new(self.body).to_html(:textile)
which works, except that it doesn''t transform hard breaks to <br />
tags, which is really important for me.
However, if I do:
self.body_html = RedCloth.new(self.body, [ :hard_breaks ]).to_html(:textile)
then it converts ALL breaks into <br
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be
alpha)? Does it affect performance much? Is there a way to get it to
automatically process templates without having to call textilize?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2008 Apr 10
5
Extending Bluecloth/Redcloth
I''d like to extend bleucloth or redcloth to support custom tags, e.g. I
want to use markup like this:
[pubmed:18332676]
which shall be extended to:
<a href="http://www.ncbi.nlm.nih.gov/pubmed/18332676">Behav Pharmacol.
2008 Mar;19(2):121-128.</a>
Does anyone know, if this is possible and has some hints how to do
this?! I have not decided, wether I want to use
2006 Apr 12
2
RedCloth versus BlueCloth efficiency
Has anyone profiled the performance of RedCloth versus BlueCloth?
I''m starting to realise that RedCloth is a more mature ruby project,
although Markdown the syntax maybe more widespread than Textilize.
Apart from the syntax, does anyone feel they have a preference, in terms
of performance or number of outstanding bugs?
Many thanks in advance.
CHEERS> SAM
2008 May 13
4
hard_breaks issues
Hello,
I''m new to this list, so first of all, many thanks to RedCloth''s
developers, it really helps me in many ruby apps :-)
I post here because I''d like to have a clear view on "hard_breaks"
related issues. I saw old references on the web and on the archives on
this ML, I''d like a fresh view !
It seems that RedCloth 3.0.4 does not handle
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize.
I have a string:
"h2. hello
_what''s up?_"
which is being textilized as:
<h2>hello<br />
<em>what’s up?</em></h2>
so no paragraph and h2 wrapped all the way.
the input is coming from firefox 1.5.2 on a mac
Anybody got any idea what the problem might be?
--
2011 Jan 23
2
RedCloth 4.1.1 vs. 4.2.3 - weird behaviour with notextile
For a community project I aim to combine RedCloth and Coderay and on doing
this, I might have found an issue with RedCloth.
I pushed a demo to Github:
https://github.com/markusproske/redcloth_coderay_demo
The index (http://localhost:3000/) demonstrates the issue.
In brief:
A page consist of textile. The textile contains @@@ruby somecode @@@
The textile is first feed into Coderay via a helper
2006 Jan 18
1
RedCloth and lang specific hooks
Hi,
I use textilize() which is a great way of letting end users edit contents.
But the code in RedCloth is quite compact, and doesn''t allow for easily
adding correct typographic behaviour depending on the lang of the text.
For instance, correct quoting uses round double quotes in english and
double carons ? ? in french; the spaces before punctuation can be
corrected too. I''d
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views. I''m
trying to display user input that will sometimes have code references in
it. This strips out all tags. I would like for the tags to be
displayed but not read as html.
Thanks in advance!
<%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %>
charlie bowman
recentrambles.com
--
Posted via
2007 Jul 16
6
Advice regarding extending RedCloth
Hello,
I am in a bit of a bind. I need to reliably parse mediawiki markup to
html, and the only parser that I can find (mediacloth) has a lot to be
desired, so I would like to extend something that works and parse
mediawiki markup. My question to this list is should I start working
on RedCloth or SuperRedCloth or is there a difference as far as
extending them? Also does anyone know of a write up
2006 May 11
3
Textile/RedCloth and h() incompatible?
If a user enters the Textile-based code for an image, say:
!>graphic.png!
the textile() method will successfully render a right-float image. Now,
if I want to escape the user''s text using h(), the ''>'' is turned into an
&. Obviously, the image then fails to render in a browser. Is there
a work around for this?
I guess what I''m really asking
2006 Apr 28
6
Emphasis or Italic?
What's the difference between:
<em>emphasis</em> and <i>italicized</i>
and
<strong>strong</strong> and <b>bold</b>
It seems to subtle for my browsers.
The only "difference" I've been able to find is that according to the
O'Reilly book <strong> and <emphasis> are semantic tags, while <b> and <i>
2007 Apr 25
0
Redcloth bug - Stack overflow in regexp matcher
Hi,
I''ve been using the rassmalog static blogging engine and have
encountered a stack overflow inside the redcloth regexp matcher. I
don''t seem to suffer this error on my Ubuntu (Feisty Fawn) box (with
Ruby 1.8.4??), but I do get it on my Gentoo system. Running the
following line will generate it (I''ve attached the YAML/redcloth file
to this message).
$ ruby -ryaml
2006 Apr 06
1
textile - redcloth - code block
I''m just getting into RedCloth and am struggling a bit with using the
pre and code tags.
Why do I need to use both? Is there a tag or way for me to extend
RedCloth to always use both pre and code with just one tag?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 05
2
Bug in RedCloth or in my head?
Instead of emm-dashes I get struck-out text surrounded with single hyphens. RedCloth
3.0.4:
>> d = RedCloth.new "-- hyphens to the left of me, hyphens to the right, all should be emm
dashes --"
=> "-- hyphens to the left of me, hyphens to the right, all should be emm dashes --"
>> d.to_html
=> "<p><del>- hyphens to the left of me, hyphens