Displaying 20 results from an estimated 4000 matches similar to: "Now what?"
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
2008 Mar 10
3
Only 5 tests out of 376 currently failing!
Good news! SuperRedCloth is down to just five failing tests! I was
down to 10 or so in mid-February but then I added test cases from
"The official reference manual for Textile 2", which added 97 new
tests, many of them failing. I''m happy to say, they''re almost all
passing now.
Four of these last five I just need to check with you on before I
deviate from
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
2009 Jun 07
1
Close to a 4.2 release; experimenting with Ragel alternatives
Hi Jason !
Hmmm, this is good and bad news:
Good: ruby hooks means I could use a single pass to parse textile
customizations in zena instead of running two parsers: nice.
Bad: I have just switched to ragel for QueryBuilder to parse pseudo
sql and I fear your shortcomings (if that''s an english phrase).
Could you describe more precisely what you are missing with ragel ?
I''m
2011 Jan 13
9
spurious <li> generated when list followed by 3
RedCloth master generates a spurios <li> element when a numbered or undumbered list is followed by three or more newlines.
RedCloth.new("* one\n* two\n* three \n\n\n").to_html
#=> "<ul>\n\t<li>one</li>\n\t<li>two</li>\n\t<li>three</li>\n</ul>\n<li>"
# note extra trailing <li> outside <ul>
A colleague
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
2008 Feb 21
5
Question about entities
1.) What is everyone''s preference on NCRs or character entities?
Textile 2 uses decimal NCRs, so a less-than character becomes <
whereas RedCloth (3.04 and prior) used <. What is your
preference? It gets tough because ' (a straight single quote)
doesn''t have a character entity equivalent.
2.) How do you feel about encoding characters like quotes
2007 Jan 23
7
RedCloth and SuperRedCloth
Good day to the parliament of RedCloth followers gathered here.
Grave matters at hand!!
I''m personally quite unhappy with the state of RedCloth and am
reluctant to release the code in the repository. I can''t say if the
code works with any confidence because I can''t generate the
(Poignant) Guide with the current RedCloth. I know some things are
fixed, but I''m
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
2011 Jan 19
3
Installing on CentOS
Hi,
I''m trying to install RedCloth on CentOS. It came with ruby 1.8.5
pre-installed so I installed rubygems-1.2.0 since that seemed compatible
(later versions require ruby 1.8.6).
All looks good but when I try:
[root at dev4 rubygems-1.2.0]# gem install RedCloth
ERROR: could not find gem RedCloth locally or in a repository
Can anyone tell me what I''m missing? Do I need to
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
2009 Jun 10
3
Problems 4.2 installing on Windows?
I keep an old Windows machine around for making sure that RedCloth
Win32 binary gems install. When I try gem update RedCloth, it just
installs 4.1.9. Did I do something wrong in the gemspec? Would
someone else with a windows machine try it and let me know how it goes?
Jason
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
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 Mar 24
9
Escaping characters
Hi,
I am writing some help about post formatting. I am using redcloth to
format the text, and in a FAQ, also formatted with redcloth, I explain
what to type to what to obtain.
So, how could I escape ''*'', ''#'' & Co, to have an output like
<redcloth>
Type *word* to obtain <strong>word</strong>
</redcloth>
I tried "Type
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?
--
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 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/.
2007 Dec 11
2
Build issues on Leopard
Hello,
I''m having some issues building r190 on Leopard (10.5.1):
$ rake
(in /Users/johan/temp/superredcloth)
ragel superredcloth_scan.rl | rlgen-cd -G2 -o superredcloth_scan.c
ragel superredcloth_inline.rl | rlgen-cd -G2 -o superredcloth_inline.c
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for main() in -lc... yes
creating Makefile
make
gcc -I.
2006 May 10
2
hard_breaks
Dear Dressers of RedCloth,
I have a question:
text = "Foo\nBar\n\nBaz"
RedCloth.new(text, [ :hard_breaks ]).to_html
# => "<p>Foo<br />Bar<br />\nBaz</p>"
Shouldn''t that really be "<p>Foo<br />Bar</p><p>Baz</p>"?
So long,
--
Christoffer Sawicki