# Strange markup help

**URL:** <https://www.ruby-forum.com/t/strange-markup-help/198190>\
**Category:** Radiant CMS\
**Created:** [October 27, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/strange-markup-help/198190 "2010-10-27T19:57:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [October 27, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/strange-markup-help/198190/1 "2010-10-27T19:57:02Z")

</div>

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%

```

This translates to:

›Contact  
Us

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

---

<div class="post-metadata">

**Author:** ![D.Kreft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@D.Kreft](https://www.ruby-forum.com/u/D.Kreft)\
**Post date:** [October 27, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/strange-markup-help/198190/2 "2010-10-27T20:23:27Z")

</div>

On Wed, Oct 27, 2010 at 1:56 PM, D.Kreft [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> is?  
> -dan

What’s the old CMS? That’s not standard textile.

---

<div class="post-metadata">

**Author:** ![D.Kreft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@D.Kreft](https://www.ruby-forum.com/u/D.Kreft)\
**Post date:** [October 27, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/strange-markup-help/198190/3 "2010-10-27T20:30:22Z")

</div>

On Wed, Oct 27, 2010 at 12:56 PM, D.Kreft [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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)�%“Contact Us”:../contact-us%

%(XYZ)abc%

is textile for abc. 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:

%(caret)�%“Contact Us”:../contact-us

---

<div class="post-metadata">

**Author:** ![D.Kreft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@D.Kreft](https://www.ruby-forum.com/u/D.Kreft)\
**Post date:** [October 27, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/strange-markup-help/198190/4 "2010-10-27T20:32:15Z")

</div>

On Wed, Oct 27, 2010 at 11:22 AM, Jim G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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']

```

]

---

<div class="post-metadata">

**Author:** ![D.Kreft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@D.Kreft](https://www.ruby-forum.com/u/D.Kreft)\
**Post date:** [October 27, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/strange-markup-help/198190/5 "2010-10-27T21:09:59Z")

</div>

On Wed, Oct 27, 2010 at 2:31 PM, D.Kreft [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Wed, Oct 27, 2010 at 11:22 AM, Jim G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 M. on  
markup parsers.
