Forum: Radiant CMS Strange markup help

Posted by D.Kreft (Guest)
on 2010-10-27 19:57
(Received via mailing list)
I'm (still) working on an upgrade from Radiant 0.6.7 to 0.9.1 and I'm 
seeing
some markup in pages that rendered fine under the old system but not 
under
the new. To cite a specific example:

    %(h3)%(carat)›%"Contact Us":../contact-us%

This translates to:

<span class="h3"><span class="carat">›</span><a 
href="../contact-us">Contact
Us</a></span>

The old CMS is allegedly using Textile to process this markup, but this
doesn't look like Textile that I've seen (I was just recently introduced 
to
it and I don't personally use it). Can anyone help me understand what 
this
is?

-dan
Posted by Jim Gay (Guest)
on 2010-10-27 20:23
(Received via mailing list)
On Wed, Oct 27, 2010 at 1:56 PM, D.Kreft <dkreft@gmail.com> wrote:
> is?
> -dan

What's the old CMS? That's not standard textile.
Posted by John Muhl (johnmuhl)
on 2010-10-27 20:30
(Received via mailing list)
On Wed, Oct 27, 2010 at 12:56 PM, D.Kreft <dkreft@gmail.com> wrote:
> I'm (still) working on an upgrade from Radiant 0.6.7 to 0.9.1 and I'm seeing
> some markup in pages that rendered fine under the old system but not under
> the new. To cite a specific example:
>     %(h3)%(carat)&#0155;%"Contact Us":../contact-us%

%(XYZ)abc%

is textile for <span class=XYZ>abc</span>. so the output you get is
correct. but i've never seen it nested like that (and testing with the
latest redcloth shows that nesting is not allowed there). perhaps the
old cms had some textile extensions or just a different parser that
supported `span class` differently. to replicate it in radiant with
redcloth just replace the outer span.h3 with a real html element:

<span class=h3>%(caret)&#0155;%"Contact Us":../contact-us</span>
Posted by D.Kreft (Guest)
on 2010-10-27 20:32
(Received via mailing list)
On Wed, Oct 27, 2010 at 11:22 AM, Jim Gay <jim@saturnflyer.com> wrote:

What's the old CMS? That's not standard textile.
>

As I stated in my original e-mail, Radiant 0.6.7...which is using 
RedCloth
3.0.4.

In redcloth.rb in that version of RedCloth, I'm seeing this:

# == Quick Phrase Modifiers
#
# Quick phrase modifiers are also included, to allow formatting
# of small portions of text within a paragraph.
#
#  \_emphasis\_
#  \_\_italicized\_\_
#  \*strong\*
#  \*\*bold\*\*
#  ??citation??
#  -deleted text-
#  +inserted text+
#  ^superscript^
#  ~subscript~
#  @code@
*#  %(classname)span%*
#

    QTAGS = [
        ['**', 'b'],
        ['*', 'strong'],
        ['??', 'cite', :limit],
        ['-', 'del', :limit],
        ['__', 'i'],
        ['_', 'em', :limit],
*        ['%', 'span', :limit],*
        ['+', 'ins', :limit],
        ['^', 'sup'],
        ['~', 'sub']
    ]
Posted by Jim Gay (Guest)
on 2010-10-27 21:09
(Received via mailing list)
On Wed, Oct 27, 2010 at 2:31 PM, D.Kreft <dan@kreft.net> wrote:
> On Wed, Oct 27, 2010 at 11:22 AM, Jim Gay <jim@saturnflyer.com> wrote:
>>
>> What's the old CMS? That's not standard textile.
>
> As I stated in my original e-mail, Radiant 0.6.7...which is using RedCloth
> 3.0.4.

Ah. I feel stupid now, sorry. I'd definitely defer to John Muhl on
markup parsers.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.