Posted By: Jason Garber
Date: 2008-10-02 18:08
Summary: RedCloth 4.0.4 Released
Project: RedCloth

This is mostly a bugfix release. A major feature is Ruby 1.9 compatibility thanks to a patch by Keita Yamaguchi. There are still quite a few warnings when compiling under 1.9, but you can install the gem and use RedCloth perfectly fine.

Latest News
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58

 

Forums | Admin

Discussion Forums: redcloth-4.0.4-released

Start New Thread Start New Thread

 

By: Rick Lloyd
Problem with Ruby 1.8.7 [ reply ]  
2008-10-11 08:18
heres the textile input:
--------------------------
h1. tweedle dee met tweedle dum...

# major
## maj / min
### maj / min / min
### maj / min / min
## maj / min
# ''

<br />
I searched "Google":http://google.com.
<br />
* major
** maj / min
*** maj / min / min
*** maj / min / min
** maj / min
* ''

--------------

run through RedCloth 4.0.4 in both cases

working properties:

Ruby version 1.8.6 (universal-darwin9.0)
RubyGems version 1.3.0
Rails version 2.1.1
Active Record version 2.1.1
Action Pack version 2.1.1
Active Resource version 2.1.1
Action Mailer version 2.1.1
Active Support version 2.1.1
Application root /Users/rick/NetBeansProjects/simple
Environment development
Database adapter mysql
Database schema version 20081010100126

not working properties:

Ruby version 1.8.7 (powerpc-darwin9)
RubyGems version 1.3.0
Rails version 2.1.1
Active Record version 2.1.1
Action Pack version 2.1.1
Active Resource version 2.1.1
Action Mailer version 2.1.1
Active Support version 2.1.1
Application root /Users/rick/NetBeansProjects/simple
Environment development
Database adapter mysql
Database schema version 20081010100126

valid html output:

<h1>tweedle dee met tweedle dum&#8230;</h1>


<ol>
<li>major
<ol>

<li>maj / min
<ol>
<li>maj / min / min</li>
<li>maj / min / min</li>
</ol>
</li>
<li>maj / min</li>
</ol>

</li>
<li>&#8217;&#8217;</li>
</ol>

<p><br />
I searched <a href="http://google.com";>Google</a>.
<br /></p>

<ul>
<li>major
<ul>

<li>maj / min
<ul>
<li>maj / min / min</li>
<li>maj / min / min</li>
</ul>
</li>
<li>maj / min</li>
</ul>

</li>
<li>&#8217;&#8217;</li>
</ul><br />
</p>

not working html output

<h1>tweedle dee met tweedle dum&#8230;<br />
<ol>
<li>major
<ol>
<li>maj / min
<ol>

<li>maj / min / min</li>
<li>maj / min / min</li>
</ol>
</li>
<li>maj / min</li>
</ol>
</li>

<li>&#8217;&#8217;<br />
<br /><br />I searched <a href="http://google.com";>Google</a>.<br /><br /></li>
<ul>
<li>major
<ul>
<li>maj / min
<ul>
<li>maj / min / min</li>

<li>maj / min / min</li>
</ul>
</li>
<li>maj / min</li>
</ul>
</li>
<li>&#8217;&#8217;</li>
</ol></li>

</ul></h1><br />
</p>

Notice that the broken output doesn't close the h1 block until the next to last line. It seems that the \n character is somehow missing in version 1.8.7 (if that is in fact what RedCloth is using as a break in input processing.

Actually, now that I mention it, I seem to recall when I was first experimenting with RedCloth 3.0.4 I found that I needed to put a blank line between entries.

Without the blank line the leading formatting token (fn1.) would just get tacked onto the end of the previous line as normal text.