Displaying 20 results from an estimated 3000 matches similar to: "Bug in RedCloth or in my head?"
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 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?
--
2006 Jun 14
7
CR issue
Hi,
I am using RedCloth (3.0.4).
First using online text2html (http://www.textism.com/tools/textile/) ,
"123
456"
returns <p>123<br />456</p>
But by code:
<code>
require ''RedCloth''
puts RedCloth.new("123\n456").to_html
</code>
I got:
<p>123
456</p>
CR is not taken in consideration. Is there any parameter I am
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 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
2005 Dec 21
8
textilize - redcloth
Hi,
I''m using textilize with redcloth 3.0.4. Everything works best except
that paragraphs are not translated as an HTML paragraph
When I write something like:
*first paragraph*
second paragraph
the output is without paragraph:
*first paragraph*
second paragraph
Any help??? Thanks
Jörg
2016 Apr 25
1
Please assist -- Unable to remove '-' character from char vector--
Thank you Jim,
The code did assist me to get the what I needed.
Also, I learnt that there are different types of dashes
(en-dash/em-dash/hyphen) as explained on this site :
http://www.punctuationmatters.com/hyphen-dash-n-dash-and-m-dash/
I achieved it by executing below command after going through this page
on stackoverflow:
2010 Apr 13
1
BBCode Fork of RedCloth
how do you install this? especially on rails 3? putting
gem "redcloth", :git => "git://github.com/ROFISH/redcloth.git"
doesn''t work.
and do nested tags like [quote][quote][/quote][/quote] work?
--
Posted via http://www.ruby-forum.com/.
2007 Jan 24
14
Strikethroughs and dashes
Who really uses strikethroughs?? This is one of the most common
tripwires in RedCloth.
You are the friend--the only friend--who has offered to help.
Obviously em dashes.
I died in -2006- wait, no, two-thousand-FIVE!
Obviously strikethrough.
I''m going on a trip - a long one - to the Virgin Islands.
That''s got to be en dashes.
Such a cheap, no-hassle, no-worry
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 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
2008 Oct 06
2
textilize with --- (3 dashes) removes text
Hi,
using --- (3 dashes) at the end of a string that is textilized,
results in a single hr tag without any text. This seems weird to me.
Am I overlooking something?
>> av = ActionView::Base.new
>> av.textilize("sometext ---")
=> "<hr />"
Cheers,
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Aug 23
0
emdash vs <del>
Hey guys. Is this a bug or what?
>> RedCloth.new("First part -- middle part -- end part.").to_html
=> "<p>First part <del>- middle part -</del> end part.</p>"
But http://textism.com/tools/textile/index.php says the output should
be:
<p>First part—middle part—end part.</p>
Thing is, I *want*
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
2007 Aug 23
20
Eliminating bad tests from SuperRedCloth
Hi, all. I haven''t felt at liberty to go axing test cases, but some
of the 33 that are failing now are ones I don''t think we want to pass?
cruft coming from Markdown or made up to fill a gap some years ago.
I''d like to float the proposition that we make Super (and thus
RedCloth 4) behave as identically as possible to Textile2 as working
on
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 Jan 15
4
Redcloth gem properly installed ... still errors
Hi all,
installed redcloth for using the object.attrib.textilize method in a template.
Using 3.0.3 because it supoosedly works the best with rails 1.0.0.
Keep getting the undefined method error. Did the require thingy, but no luck
What would be the most I''m-a-guru place to put the require btw?
Thanx.
Gerard
--
"Who cares if it doesn''t do anything? It was made with
2007 Sep 27
2
wxRuby Documentation / Textitle Docs
Hey All,
Just wanted to let you guys know, that with the HTML Generated
documentation from the Textile source code, does not show *''s in stuff
like Wx::FileDialog. It''s interpreting this as a Bold, not as an
Asterisk. Just thought you''d want to know that.
L8ers,
Mario Steele
2007 Mar 24
3
Patch for superredcloth to enable textile table headers
SuperRedCloth v1.160 and svn rev 163 don''t work the textile commands
that specify table headers instead of table data.
Here''s a simple test:
require ''superredcloth''
w = "|_. a|_. b|_. c|\n|1|2|3|"
h = SuperRedCloth.new(w).to_html
puts h
<table>
<tr>
<td>_. a</td>
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I
input my text into, which will then be put into an e-mail and sent out.
The problem I am having is when there is a single line break.
Multiple line breaks work fine (hitting enter twice), but single line
breaks don''t seem to work properly.
Take the following input:
Line1.
Line2.
Line3.
Line4.
Using