What do you define as a paragraph in RedCloth? Because in RedCloth also doesn't support this either:
-- p(link). Nor does it support this: <hr> p(link). The quick reference page on hobix, seems to suggest that characters on a line by themself are considered a paragraph. http://hobix.com/textile/quick.html So, I'm fairly confused at this point. What exactly is considered a paragraph to RedCloth? Clearly, this behavior is not obvious to the casual user of Textile (Instiki users?). I personally think it is a bug. I'm looking at the RedCloth source code to try to fix it, but it's fairly dense code. I'm not blaming anyone, and I'm hoping that this thread will serve as documentation for other users. Also, I emailed _why who I met briefly at SXSWi in March of this year. I will keep the list updated with any response that he has. Finally, I feel that this is an appropriate forum for this discussion because if this software is used by a wider audience these emails serve as documentation for users. This is particularly relevant because RedCloth doesn't have a mailing list that I can seem to find. Regards, Tony On 6/13/06, John Whitley <[EMAIL PROTECTED]> wrote: > Hi Tony, > > As a point of order: While Instiki folks are certainly interested in > RedCloth issues, > RedCloth is maintained by a separate team from Instiki. If you have > a suspected or confirmed bug, I recommend checking out the RedCloth > homepage, with links to the project page, mailing > lists, etc.: > http://whytheluckystiff.net/ruby/redcloth/ > > To the specific issue that you cite, I believe that your > interpretation of Textile is > incorrect in this case. All of the "block modifiers" must begin a > paragraph. This is > essentially all of the modifiers that end in a period, e.g. "hn.", > "p.", "bq.", and so forth. > Your example "-- p(link). blah" places the "p." after the start of > the paragraph, so it (correctly) isn't recognized. > > Possible solutions are to start the paragraph with the "p." marker: > > p(#link). -- blah > > which produces: > > <p id="link">—blah</p> > > Or alternatively use a Textile span marker: > > -- %(#link)blah% > > to get: > > <p>—<span class="link">blah</span></p> > > FYI, The above examples were generated via RedCloth 3.0.4. > > -- John > > On Jun 13, 2006, at 3:28 PM, Joseph Perrie wrote: > > > I replicated the alleged bug here: > > > > http://instiki.org/show/AnchorBug > > > > Tony > > > > _______________________________________________ > > Instiki-users mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/instiki-users > > _______________________________________________ > Instiki-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/instiki-users > _______________________________________________ Instiki-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/instiki-users
