Rel attribute in anchor tags

Simon Gate simon at noona.se
Sat Jun 2 06:37:10 EDT 2007


Hi there,

I haven't looked at the code but will it be possible to add rel  
attribute to anchor tags in super redcloth? It would be great! ATM i  
have changed the regexp in redcloth to use curly braces as rel tag  
when writing textile. Since target attribute don't validate in XHTML  
strict and i still want to open some links in new a window.

Old style
----
Textile:
"name(title)":http://localhost

HTML:
<a href="http://localhost" title="title">name</a>

With rel
----
"name(title){rel}":http://localhost

HTML:
<a href="http://localhost" title="title" rel="rel">name</a>

Keep up the good work!
/Simon

--
   Simon Gate
   http://noona.se
   +46.708798353
   simon at noona.se (jabber, msn, e-mail)




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2411 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20070602/7004f81c/attachment.bin 


More information about the Redcloth-upwards mailing list