Displaying 20 results from an estimated 24 matches for "superredcloth".
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 that outlines
extending RedCloth or SuperRedCloth with new markup? I apologize if
these questions are a bit rudimentary for this list, but I appreciate
any and all input and help.
Thank you
2007 May 08
2
Extending SuperRedCloth
...iting code that subclasses RedCloth and emits styled text that
is not HTML. For example, I''m going to be emitting RTF and other
formats from Textile or Markdown.
I''ve got it working quite well with plainclothed RedCloth, but I can''t
seem to override any of the methods in SuperRedCloth. Here''s a sample:
http://pastie.textmate.org/59859
I should see a string of C''s for the copyright symbol, but I still see
the HTML escape.
Will I need to get into the guts of the Ragel scanner to make it do
what I want, or am I missing something that can be done in Ruby?
Than...
2008 Feb 24
1
Install / Build fail on OSX Server 10.5.2
Hello,
I would like to install SuperRedCloth on my server, here is the entire
log :
gem install superredcloth --source http://code.whytheluckystiff.net
Building native extensions. This could take a while...
ERROR: Error installing superredcloth:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versi...
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>...
2007 Feb 04
0
SuperRedCloth 1.160
Okay, update:
gem install superredcloth --source http://code.whytheluckystiff.net
Or:
http://code.whytheluckystiff.net/dist/superredcloth-1.160.tgz
This one has better list, table and <notextile> support. I am close
to releasing a SuperRedCloth on Rubyforge, so PLEASE! help me test
this out by trying it on your personal wikis...
2007 Nov 23
1
SuperRedCloth inserting <pre><code>
I maintain a web application frozen to version Ruby 1.8.6 and RedCloth 3.0.4
Whenever I insert a newline followed by a white space, SuperRedCloth, wraps the text with <pre><code> tags.
Say for example I write
###############
Hi
This is me
###############
This piece of text gets translated to
<p>Hi</p><pre><code>This is me</code></pre>
rather than
<p>Hi</p><p>This...
2007 Jan 23
7
RedCloth and SuperRedCloth
...te the
(Poignant) Guide with the current RedCloth. I know some things are
fixed, but I''m afraid that much is still broken. I think I''d rather
re-release 3.0.3 as 3.0.5, you know?
So, my first question is: what to do with the RedCloth 3.x series??
---
The next pressing item is SuperRedCloth.[1] This library is much
faster, much cleaner, but also much smaller. I don''t plan on
supporting DocBook or any other formats other than true XHTML. If
you want to convert to DocBook, i''d suggest XHTML-to-DocBook. Most
importantly, I want SuperRC to be small and performant.
C...
2008 Jan 07
0
HTML handling in SuperRedCloth
I''m having all kinds of fun trying to get HTML to work "properly" in
SRC (mild sarcasm). I''m still working on the problem, but wanted to
run it by the group.
Currently, Textile2 lets you put in HTML as long as it''s in the same
block (i.e. no double-returns).
<ul>
<li>You can put HTML code right in Textile.</li>
<li>It will
2007 Mar 24
0
Stability and usability of SuperRedCloth - particularly break handling
I was just wondering if I should upgrade to using SRC, as it sounds
like it is going to be what becomes RedCloth 4. Reading the wiki and
the announcements it''s supposedly under very active development,
nearing release, and the breaking options are next on the list. Since
there hadn''t been an update in a little while, I was curious where it
stands now.
The break handling in
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. -I.
-I/System/Li...
2007 Mar 21
0
using ''_.'' to indicate table headers doesn''t work in SRC v1.160
I''m using" superredcloth (1.160)
Using ''_.'' to indicate table headers doesn''t work:
$ irb
irb(main):001:0> require ''superredcloth''
=> true
irb(main):005:0> SuperRedCloth.new("|_. name |_. age |_. sex |\n|
joan | 24 | f |\n| archie | 29 | m |\n| bella | 45 | f |\...
2007 Jan 28
1
^SUPER^ _RED_ ~CLOTH~ 1.153
New gems (source and win32):
gem install superredcloth --source http://code.whytheluckystiff.net
Use it like:
SuperRedCloth.new("_huh?_").to_html
Okay, getting close! A lot more tests are passing. There are still
about 50 tests failing. Most of these are due to ol/ul list
problems.
Here''s what''s still broken:
* Op...
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 Mar 13
3
Whitespace in SuperRedCloth
Up to now, the tests have been running with whitespace stripped out.
Newlines and tabs are insignificant in HTML, so I figured why bother
with them?
Now I realize why: they''re significant in pre tags and they also make
your code look pretty!
I''ve been working to get SRC output to roughly match Tetxile2''s as
far as tabs and newlines go. It''s tough and
2008 May 13
4
hard_breaks issues
...br />\nbleh</p>" while RedCloth 3.0.4 result is
"<p>test\nblah\nbleh</p>"
Here are the questions :
- is this behaviour normal (according to developper point of view /
principles) ?
- if not, is it corrected on dev version, or about to be (I saw the name
"SuperRedCloth" ??) ? and how to test it ?
- would you be interested in a patch that make redcloth 3.0.4 behaviour
similar to textile php implementation, or it is to be outdated ? I''ve
one, strongly inspired from the php class by Alex Shiels. I think it
works well, but I''m a ruby beginne...
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
2008 Jul 24
1
Excerpting a summary from my marked-up blog post without breaking html tags?
...he problem is, if the hundredth word is in the middle of a
block quote or a heading or something, the whole page gets messed up.
What''s the easiest way to close any tags that might still be open at
the end of the excerpt?
For what it''s worth, posts are marked up using textile and
superredcloth.
Thanks for your help,
Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To uns...
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
2008 Mar 23
1
redcloth gem ragel code doesn''t build in jruby
I tried to install RedCloth-3.274 in jruby (trunk) but the install
failed when RedCloth tried to build the C code using mkmf:
I forget whether SuperRedcloth ever did build in JRuby??
I know Hpricot (which also uses ragel which can compile to Java code)
works in JRuby -- with the patch here:
https://code.whytheluckystiff.net/hpricot/ticket/131)
I might be confusing the two ...
FYI: If you are on a Mac or Linux system the script I pasted here is...
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...