similar to: HTML handling in SuperRedCloth

Displaying 20 results from an estimated 1200 matches similar to: "HTML handling in SuperRedCloth"

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
2008 Mar 15
8
Now what?
> $ rake test > /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/ > rake-0.7.3/lib/rake/rake_test_loader.rb" "test/test_formatters.rb" > "test/test_parser.rb" > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/ > rake_test_loader > Started >
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
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
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 May 08
2
Extending SuperRedCloth
Fellows of the cloth -- I''m writing 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:
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>
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
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
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>
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
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
2006 Aug 29
0
Several bug-fixes and improvements(?)
Hey guys, I have been working with RedCloth for the past week or so in order to try and upgrade a University''s blog system (blogs.warwick.ac.uk) to Textile2, having used a bespoke Java-based Textile1 implementation in the past. As such, it''s been an important part of this that it works as much as possible to give the same results for Textile1 code, but with the added features
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 and blogs. Still to be done: * support for
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.
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
2010 Nov 27
1
sed with several lines, how?
hyphen's [ - ] are just for marking the start/end of a pattern, but there are _not in_ the pattern! "OUTPUT" is what i want after "seding" the PATTERN#X's so i for e.g.: need the first, and second "magic" sed "FIRSTMAGIC" PATTERN#1 sed "SECONDMAGIC" PATTERN#2 PATTERN#1: ----------------------------------- SOMETEXT#1
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
2009 Apr 17
2
how to call javascript function in text_field_tag
Dear all Sorry for dummy question. How can I convert a text input in form to upper case letter in view? Can I call the javascript function toUpperCase() in text_field_tag?? <%= text_field_tag(:sometext, nil, :size => 14) %> I know I can achieve this using params[:sometext].upcase in controller, but I want to do this in view. Any ideas? Many thanks Valentino -- Posted via