# \[RedCloth\] Adding a class to a link with Textile

**URL:** <https://www.ruby-forum.com/t/redcloth-adding-a-class-to-a-link-with-textile/158566>\
**Category:** Ruby\
**Created:** [January 24, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/redcloth-adding-a-class-to-a-link-with-textile/158566 "2009-01-24T23:17:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [January 24, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/redcloth-adding-a-class-to-a-link-with-textile/158566/1 "2009-01-24T23:17:15Z")

</div>

I am trying to generate the following link using Textile:

 

Using the following info found on a Textpattern forum:  
 [http://forum.textpattern.com/viewtopic.php?id=19888](http://forum.textpattern.com/viewtopic.php?id=19888)

This should have worked:  
“(first)This is a testlink”:[http://mysite.com](http://mysite.com)

But it didn’t. I am using RedCloth 4.1.1. Did the behavior change since?  
How to do that?

Best regards,

---

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [January 24, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/redcloth-adding-a-class-to-a-link-with-textile/158566/2 "2009-01-24T23:42:19Z")

</div>

Fernando P. wrote:

> I am trying to generate the following link using Textile:
> 
>  
> 
> Using the following info found on a Textpattern forum:  
> [http://forum.textpattern.com/viewtopic.php?id=19888](http://forum.textpattern.com/viewtopic.php?id=19888)
> 
> This should have worked:  
> “(first)This is a testlink”:[http://mysite.com](http://mysite.com)
> 
> But it didn’t. I am using RedCloth 4.1.1. Did the behavior change since?  
> How to do that?
> 
> Best regards,

Actually it does work, I made a typo during my tests.
