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 **word** to obtain *word*", but does not work. Any help? Jean-Etienne
> So, how could I escape ''*'', ''#'' & Co, to have an output like > <redcloth> > Type *word* to obtain <strong>word</strong> > </redcloth>Try: <notextile> Type *word* to obtain <strong>word</strong> </notextile>
Thank you. I have a second question. How can I include lists in a table? I did that: |_. What you type |_. What users see | | <notextile>#</notextile> A first item <notextile>#</notextile> A second item <notextile>#</notextile> A third item | # A first item # A second item # A third item | But the table is not recognized. If I put all # in one line, of course, the list is not recognized :( Any idea? Assaph Mehr wrote:>> So, how could I escape ''*'', ''#'' & Co, to have an output like >> <redcloth> >> Type *word* to obtain <strong>word</strong> >> </redcloth> > > Try: > > <notextile> > Type *word* to obtain <strong>word</strong> > </notextile> > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards >
On 3/24/06, Jean-Etienne Durand <etienne.durand at mail.com> wrote:> Thank you. > I have a second question. How can I include lists in a table?Not 100% sure, but I think textile support for tables is rather limited, especially since each row has to be on a separate line and lists also rely on line breaks. If you want something like this you should probably construct the table by hand with HTML tags. I could be wrong though. Cheers, Assaph
Jean-Etienne Durand wrote:> > So, how could I escape ''*'', ''#'' & CoIn a Soks wiki (which uses Redcloth for markup), I would use ''==*word*=='' to get ''*word*'', but I don''t know if Soks has extended Redcloth... Regards, -- Bil Kleb http://fun3d.larc.nasa.gov
> > So, how could I escape ''*'', ''#'' & Co > > In a Soks wiki (which uses Redcloth for markup), I would use > ''==*word*=='' to get ''*word*'', but I don''t know if Soks has extended > Redcloth...Cute, wasn''t aware of this. Looking at the RedCloth sources, this is a redcloth thing. It translates ==...== to <notextile>...</notextile>. This works beautifully on instiki as well. Thanks for sharing, Assaph
Assaph Mehr wrote:> > Cute, wasn''t aware of this. Looking at the RedCloth sources, this is a > redcloth thing. It translates ==...== to <notextile>...</notextile>. > This works beautifully on instiki as well.There seems to be a bug though: when a paragraph follows this, e.g., =*no textile stuff*= New paragraph here. there is no paragraph break. It behaves as if the newlines are not there. Regards, -- Bil Kleb http://fun3d.larc.nasa.gov
> > Cute, wasn''t aware of this. Looking at the RedCloth sources, this is a > > redcloth thing. It translates ==...== to <notextile>...</notextile>. > > This works beautifully on instiki as well. > > There seems to be a bug though: when a paragraph follows > this, e.g., > > =*no textile stuff*=> > New paragraph here. > > there is no paragraph break. It behaves as if the newlines > are not there.It renders fine on my instance. The difference is that in Pimki I force RedCloth to use :hard_breaks (using version 3.0.4 of redcloth). Have you tried adding an extra line break between the lines? It sometimes helps. If not, you could probably add a manual paragraph-break element, or use the verbose <notextile> tags. HTH, Assaph
Assaph Mehr wrote:> > It renders fine on my instance. The difference is that in Pimki I > force RedCloth to use :hard_breaks (using version 3.0.4 of redcloth).Soks doesn''t use :hard_breaks.> Have you tried adding an extra line break between the lines?Yes. And adding trailing and leading spaces all over.> If not, you could probably add a manual > paragraph-break elementThat''s what I resorted to. Regards, -- Bil, x4364 http://fun3d.larc.nasa.gov
> > It renders fine on my instance. The difference is that in Pimki I > > force RedCloth to use :hard_breaks (using version 3.0.4 of redcloth). > > Soks doesn''t use :hard_breaks.You can override this. Quote: Setting :redcloth_hard_breaks => true in start.rb causes Redcloth to revert to the 2.x approach of turning every newline to a <br />. This is off by default (i.e. the default works like Redcloth 3.x) HTH, Assaph