Displaying 20 results from an estimated 10000 matches similar to: "Setting html breaks when using textile (redcloth)"
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 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 Aug 04
0
Hard break broken in 3.0.4?
Is :hard_break working in RedCloth 3.0.4?
$ ruby -v
ruby 1.8.4 (2005-12-24) [i686-linux]
$ pwd
/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib
$ irb
irb(main):001:0> require ''redcloth''
=> true
irb(main):002:0> rc = RedCloth.new("h1. Heading\n\n_Not_ heading.")
=> "h1. Heading\n\n_Not_ heading."
irb(main):003:0>
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
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
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
2005 Dec 02
0
Hard breaks problem - tests attached
Hi All,
As it was mentioned in [1], hard_breaks parsing breaks parsing. Particularly, I
noticed that paragraphs and lists don''t work.
Attached is a patch to run-tests.rb, as well as yml test case. Not sure if last
test case is 100% correct, though.
Regards,
Vadim
[1] http://rubyforge.org/pipermail/redcloth-upwards/2005-November/000012.html
-------------- next part --------------
An
2006 Mar 10
2
textilize != RedCloth.new ?
For me, textilize(stuff) produces nasty stuff - <br>''s instead of
enclosing <p>''s and some closing <h*>''s are missing. RedCloth.new(stuff)
works fine though. Isn''t textilize supposed to produce the same output?
Or do I need to tweak something?
Joe
--
Posted via http://www.ruby-forum.com/.
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 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 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 May 27
0
:filter_html and :hard_breaks makes <br> ...weird
hi!
never posted to a mailing list before so I hope this
is an appropriate use.
Love redcloth btw!
I guess I just have a bug report though... if I turn
on hard_breaks and filter_html, all the <br />s turn
into <br>s. weird. For now I''m just doing this which
is fine:
textilized = RedCloth.new(text, [ :filter_html,
:hard_breaks ])
return
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
1
Redcloth is ..
I've been looking at Dean Allen's Redcloth, which claims to incorporate
both Markdown and Textile, as implemented in Ruby by _why.
While the code is clear and readable, the boundary between markdown and
Textile is not.
The documentation says
# By default, Redcloth uses both Textile and Markdown formatting, with
# Textile formatting taking precedence. If you want to turn off Markdown
#
2007 Jan 17
0
instiki markdown vs Redcloth
I installed instiki and it works great. The default setting is to use
''textile'' markup engine and I love it.
I love that if I just put google.com then it is convereted into a link.
I have another app where I use Redcloth. Here in order to a link I
need to do this.
"Google.com":http://google.com
It''s my understanding that instiki is using Redcloth as
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 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
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 Feb 17
0
Output text (not HTML) with RedCloth?
Is there a convenient way to output formatted text instead of HTML with
RedCloth?
Basically, it would need to fill in a few areas like -
+ Replace # with numbers for ordered lists
+ Indent for blockquotes and ordered/unordered list items
+ *bold* and _italics_ would look just like the original textile
+ Perhaps h1. h2. h3. etc would just be all caps?
Jake
--
Posted via
2006 Apr 07
0
css for textile/redcloth?
Is there a standard .css file that can be included for the redcloth
package, or should I write my own rules for the tags it supports?
--
Posted via http://www.ruby-forum.com/.